Meaningless Drivel is fun!*
The moose likes Groovy and the fly likes Writing variables of object to a property file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Writing variables of object to a property file" Watch "Writing variables of object to a property file" New topic
Author

Writing variables of object to a property file

Eric Fancis
Greenhorn

Joined: Jun 14, 2011
Posts: 29
I am trying to write the variables of a singleton to a property file.

I am trying this:


This works, but I am getting too much text in the output. Specifically:


Also, my properties are writing with ' ' around each value. Example: instead of just

How do I correct these two issues?


http://www.h4t3r.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Writing variables of object to a property file
 
Similar Threads
Using final as program-wide variables
Questions about properties files
Stringbuffer remains unchanged in a method
Ch10:Development
why System class instance cannot be instatiated