I've a aab.properties file. I'm modifying the property of this file at runtime and saving the .properties file.
Lets Say
aab.properties has the following values
#added by rrqqq one=1
#added by sam aab=2
======================
1.when i do a save from java using the following code, the format of the properties file gets changed. How can i retain the same format? format means the spaces or blank line are ignored, i want to retain the blank line and comments.
2. How can i retain the same order? once the properties file is saved in java, aab is preceded before one, but i want to retain the same order one should be following by the key aab in the properties file. Is there a way to do that.