I’m writing a Java SE 7 desktop application. I will need to store data such as configuration settings and 2 user accounts (an admin and everyone). The simplest method seems to be just writing a text file but I don’t see any effective means for protecting that data and it is sensitive. I’m thinking SQLite is probably the best tool for me but I was wondering if anyone might have any suggestions as to something even smaller, more lightweight, simpler — as there just isn’t enough data that needs storing to justify a whole database it seems.
Thanks!
Irongleet
You can (and should) use the Preferences API for that. On Windows, it will write to the Registry (so it’s different for each user).