File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Problem regarding saving properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem regarding saving properties file" Watch "Problem regarding saving properties file" New topic

Problem regarding saving properties file

amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
I save a properties file using its store method but saving operation also add \ in front of :.How to get rid of \.
Joe Ess

Joined: Oct 29, 2001
Posts: 8836

You don't need to. If you read your properties back in, the Properties object correctly handles the "\:" and returns ":".

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Problem regarding saving properties file
Similar Threads
Common resource for all configurable parameters.
Properties file issue
How to get the achieve Version of deployed webservices
FileInputStream problem