I'm creating an application that helps with tracking the estimated earnings that someone can make based on the amount of questions that they've done. What I'm trying to do is store the amount of questions that they've already done and the earnings total.
I've tried to do this with a text file before, but when I've tried to make the entire application into a jar file, the text file doesn't work. I was hoping that the jar file would be able to read from the text file, but it doesn't and the data doesn't save. Is there any better way to do this so the application can save data on any user's computer?