java - Preserving order in property file while it's being updated -



java - Preserving order in property file while it's being updated -

i trying modify existing property file using properties class methods. file getting updated not maintain property order. example, if have info this:

baseurl=stackoverflow.com user_id=hello pass=test123

after updating file it's not maintaining key=value pairs. updated file contents alter below:

pass=test123 baseurl=stackexchange.com user_id=hell0222

i want info preserve order before updating. please suggest me if of know how preserve order in property file.

java

Comments

Popular posts from this blog

php - How to pass multiple values from url -

database - php search bar when I press submit with nothing in the search bar it shows all the data -

ios - How to load .png images from Documents folder of an app -