This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes The equals character in the value side of Properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "The equals character in the value side of Properties file" Watch "The equals character in the value side of Properties file" New topic
Author

The equals character in the value side of Properties file

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 776

I want to represent in a properties file, a name-value pair that looks like this:

Whereby the key is f and the value on the RHS is com.foo:style=x. Is this doable ? Thanks

Pho
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

I don't know but if you're having problems...

I read somewhere that objects of the class Preferences work better than objects of type Properties.

I did try out the ProperyResourceBundle and I believe that the ListResourceBundle has fewer problems because it gives you greater control (but of course it takes more coding).

Kaydell
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: The equals character in the value side of Properties file
 
It's not a secret anymore!