Need some help regarding properties.store

Hi,

filename.properties

===================

test.url=http://google.com

test1.url=http://yahoo.com

try {

properties.store(new FileOutputStream("filename.properties"), null);

} catch (IOException e) {

}

The store method of the Properties class replaces all http:// to http\://

test.url=http://google.com -> test.url=http\://google.com

Please let me know how to handle this situation.

Thanks,

Sarayu.

[485 byte] By [Sarayu_Geethajalia] at [2007-10-3 8:35:22]
# 1
1) That is not a question for the algorithms forum2) The described behaviour is intended. Take a look at the API-doc of Properties.store(...) and Properties.load(...).
horstmeyera at 2007-7-15 3:42:56 > top of Java-index,Other Topics,Algorithms...