I want to store values permanently in a variable. The same variable should be able to be edited and saved by user, and whatever it is I need the value of the variable from the last time I modified it, like a database. Please explain me with some examples!
Share
You need to serialize it somewhere that persists when the computer is rebooted, and then read it when your program starts again. This could be a database, (for simpler DBs, look at something like SQLite) an XML file, etc.