Search code examples
c#winformsdata-storage

Best way to store small amount of data


I'm new to windows app and I would like to know what the best way to save a small amount of data, like 1 value a day.

I'm going for the text file because it's easy, but I know i could use MS Access.

Do you have other option ? Faster or better ?


Solution

  • If you need to read it then use a plain text file.

    If you need to read the values back into the application then serialize to an XML or binary file by making your user data serializable possibly by having a List of values in your object.