dcsimg
How to keep the order of properties in a property file after load, change some of them and store them back.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dahai_Zheng
Posted On:   Thursday, June 10, 2004 01:32 PM

I am trying to change one or two properties in my program. First I load the properties file in as "props", and then use the setProperty() to change them. Finally, I use props.store to save them back. I noticed the order of the list of properties in the file changed. The reason is the properties is a Hashtable! How do I keep the original order? I don't want to treat the file as a pure text file and modify in the hard way. Appreciate any help!

Re: How to keep the order of properties in a property file after load, change some of them and store them back.

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, June 10, 2004 01:51 PM

why do you need them in the original order?
About | Sitemap | Contact