I would like to know how I save some data as an example, in the case numbers, in a text file so that when I close the application the data will still be saved and when I open it I can retrieve it.
I would like to know how I save some data as an example, in the case numbers, in a text file so that when I close the application the data will still be saved and when I open it I can retrieve it.
The strategy you want to use is something very simple: write to a file the data, and re-open the app, read the same data and put it in the right place.
C # (and the .NET Framework) makes the class File
available for just this case. More documentation can be found on this microsoft link .
I suggest you search for XML files, in it you can organize the data from "tags" and then read them. Take a look at the System.Xml class