I want to create an XML file through c# and need to read and write on it.
The data I need to store are just strings and integers.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Roughly three options (I shall assume at least .NET 3.5):
To be honest you’ll probably achieve the result you want fastest using Linq to XML and its also probably the most flexible approach however you ought to consider what is the most appropriate solution for your particular application – e.g. if the values you’re saving are application settings then using the configuration/settings may be more appropriate.