Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving Data  RSS feed

 
Abie Roy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am a beginner just started Java, I have done a programm the next thing i need for the programm is the ability to save the data so when its next used it should bring whatever data that has already been stored.

currently whenever the program is exited after use, the data entered is lost so the next use of the programm will not have the past data saved.

i am not quiet sure of this but my guess is that the program needs another file/program to store that data entered.

i hope this is clear enough, i need the quick response.

thanks
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

The links in this thread should help you out.
 
Stephen Foy
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should take a look at the FileReader class, and FileWriter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!