i'm writing java application contains lot of savable settings. config structure looks this:
config |_ game 1 |_ game name: blah... |_ player name: alice |_ player name: bob |_ other settings... |_ game 2 |_ game name: hah |_ player name: alice |_ player name: bob |_ other settings... |_ game n....
you got idea. tried use xml working dom4j pain there lot of child nodes same name in different , same parent nodes , need change them lot. far hassle-less way discover use plain text file like
[game 1] game name: blah player name: alice player name: bob ... [game 2] ...
but feel rudimentary. best or standard practice in industry maintaining config files in java?
edit : i'd solution portable, copy file 1 computer not break program. (sorry forget mention ahead.)
the best way store settings/preferences in java use preferences api.
Comments
Post a Comment