0

I am programing a game and want to save a couple of variables that are bool type. All of the values are stored In class named "Variables". can it be done without using external files if possible?

1 Answers1

1

If you're programming against the Windows Forms model you can look into saving such simple data in the Application settings. This will alleviate some learning curve on serialization.

Take a look here for some insight: Best practice to save application settings in a Windows Forms Application

If the save game data is going to get more complex you'll probably want to start searching for info on XmlSerializer, JSON serialization, or if you need your data concealed from prying eyes: BinarySerializer

Community
  • 1
  • 1
Dave Jellison
  • 924
  • 13
  • 22