How to keep track of variables even after you closed the program?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By KripC2160

I am thinking of creating a program where you can keep track of things. But I don’t really know how to keep the stats after you close the program

:bust_in_silhouette: Reply From: timothyp

You would have to save that data to a file before the app closes.
Look at this:
And this: