That sounds OK. You might consider looking at the Properties class which makes it easy to load and save named properties in a file.