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: https://forum.godotengine.org/36487/how-do-i-save-settings-in-a-config-file
And this: https://gdscript.com/how-to-save-and-load-godot-game-data