I need to save up to around a max of 10 sets of data (possibly more). Each set of data contains 3 strings.
What would be the best method to store this low amount of data? (so it saves each time the user opens/closes the application)
Printable View
I need to save up to around a max of 10 sets of data (possibly more). Each set of data contains 3 strings.
What would be the best method to store this low amount of data? (so it saves each time the user opens/closes the application)
You could define a class or structure with a property for each of the three values, then create an array or List of instances of that type, then serialise it to an XML or binary file. There are lots of examples of XML and binary serialization around. Notice I use a "z" rather than an "s", because most of the examples will use the US spelling rather than the "proper" spelling. ;)