This C# program provides an example of how to save and load data from an XML file using XmlSerializer
class.
- .NET 7.0 SDK.
The program presents a simple console menu that allows the user to choose between three options:
- 1 - Load: Load and display the data saved in an existing XML file.
- 2 - Save: Save sample data to an XML file named "data.xml" located in the current directory.
- 3 - Exit: Exit the program.
When selecting options 1 or 2, the program uses the XmlSerializer
class to serialize and deserialize data to and from an XML file.
- Clone the repository or download the source code.
- Navigate to the project directory using the command prompt or terminal.
- Run the program by executing the following command:
dotnet run
- Select an option from the console menu.
This project is licensed under the MIT License.