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