Save data to a text file for later reading

1

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.

    
asked by anonymous 15.08.2015 / 00:08

2 answers

1

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 .

    
15.08.2015 / 00:31
0

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

    
29.09.2015 / 16:30