This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
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 Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem regarding saving properties file" Watch "Problem regarding saving properties file" New topic
Author

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 \.
Thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9102
    
    9

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


[How To Ask Questions On JavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem regarding saving properties file