|
-
October 8th, 2000, 12:22 PM
#1
Writing properties to server
Hi,
In my applet im getting some properties from a file on the server, using:
URL url = new URL( getCodebase(), "myfile.property");
URLConnection uc = url.openConnection();
BufferedInputStream bis = new BufferedInputStream( uc.getInputStream());
Properties props = new Properties()
props.load( bis);
How do i save these properties back into the property file, after having altered them ???
I've tried with:
BufferedOutputStream bos = new BufferedOutputStream( uc.getOutputStream());
props.save( bos, "SOME_HEADER");
I get exception; Already connected when trying to save to the file. Is it not possible to both read and write with the same URLConnection ???
Any reply appreciated
Soren Staun Jorgensen
CADeye
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|