This discussion is archived
3 Replies Latest reply: Jan 13, 2009 6:29 AM by 795658 RSS

how to prevent Properties.store() to automatically escapes chars?

795658 Newbie
Currently Being Moderated
Hi all,

I have the following code:
currentProperies.load(new FileInputStream(new File(PROPERTIES_FILE_NAME)));

currentProperies.store(new FileOutputStream(new File(PROPERTIES_FILE_NAME)),"");
when I open the properties file, I can see that this procedure put escape char so this line:

rdv.uris=tcp://serverName:6600

turns to be:

rdv.uris=tcp\://serverName\:6600

Can you please try to think of a way to avoid this?
Tnx,
Uri