Looking for some best practice advice, I am writing a java app and have a txt file which the app will read at start up and generate a series of objects, the user will have the option to add additional objects and I want to update the initial txt file to hold this information also (the txt file will be dynamic).
What is the best practice approach to this? One option I'm exploring is having an initial file within the JAR and if the user updates, create a second file in user.home, the app searches user.home initially and if nothing defaults to JAR resource txt file, what do you think? Will this work cross platform? is there any issues with this approach?