• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to save information from prior runs of a program  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tl;dr - What is the name of the technique in which you can save information prior iterations of a program for use in future iterations of that program?

I am trying to develop a program in which someone can submit a request (which is placed in a map, with the requester's email as the value) or fulfill a request (parallel map in which existing request is the key and the fulfiller's email is the value). However, I am not sure how to ensure that information carries over from one run of the program to the next, since the map is re-initialized every time the program is run.

I am aware that there are probably previous questions asked about this, but because I'm such a newbie, I'm not sure what jargon to use. I've tried different iterations of my query on Google and Stack (e.g. "How to retain information in program runs", "How to store information in future runs of program", etc.), but I'm failing to get the answers I'm looking for.

What is the name of this type of information-storing/how do I go about storing program information in this way? Thanks so much in advance for excusing my lack of familiarity with this topic...
 
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dillon Eric wrote:tl;dr - What is the name of the technique in which you can save information prior iterations of a program for use in future iterations of that program?

What is the name of this type of information-storing/how do I go about storing program information in this way? Thanks so much in advance for excusing my lack of familiarity with this topic...


How about saving the information to a file? How about saving the information to a database? etc.

Henry
 
Saloon Keeper
Posts: 3329
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dillon Eric wrote:What is the name of the technique in which you can save information prior iterations of a program for use in future iterations of that program?

"Persistence"

Persistence is “the continuance of an effect after its cause is removed”. In the context of storing data in a computer system, this means that the data survives after the process with which it was created has ended. In other words, for a data store to be considered persistent, it must write to non-volatile storage.
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...and welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!