This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

writting to property file

 
Anna Hays
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, can someone tell me how to set and write to a property file after loaded and changed it? I am using ResourceBundle. I have looked at System.setProperty etc, but nothing seem to provide the functionalities to set and write back to the property file. Apart from loading it as a File and put KEY=VALUE.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would check out the Properties class' API doc at http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html
You'll see that the class has got a store() method that accepts an output stream.
Regards,
Marcel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic