-1

What's the best way to store data in a C# application?

I plan to have the user to set the database connection and output folder. But I need my application to remember those settings the next time the user starts the application.

I was thinking saving the data to an XML file then just extract the data from the XML file each time the application starts. Is there a better way to do this? Perhaps Visual Studios' application settings?

Visual Studio -> Project -> (project name) Properties -> Settings tab

If it's the latter, how would I go about this?

bjornm
  • 1
  • 3

1 Answers1

0

From your description, it sounds like you definitely want to use the Properties.Settings. This will let you have user-specific connections easily.

You can read this answer for a good breakdown of each option.

Community
  • 1
  • 1
DrewJordan
  • 5,266
  • 1
  • 25
  • 39