-
Save integer variable
Hi all,
I'm a beginning level programmer (hobbist) and I would appreciate if someone could give me a clue on a method to save a value from a variable. I would like to update the value during program run time and then on the next time usage of the program have an updated value to use and update again.
-
Write the variable to a file. Read the variable back from the file next time you run the program.
-
And it would be more portable and readable to write it out in a text representation.
-
Thanks guys for the direction on this question, I looked it up in a couple of resources and it looks like that should help with the code. So for now read, write and test what I've got, and again thanks for the swift response.