You can create an application configuration file in Visual Studio. This is basically an XML file that can be used to save application configuration data, but it is not intended to be read as an XML file: the .net framework provides some classes for interacting with it.
This link may provide some background and example code: Using application configuration files in .NET
You can put this code in your .config file:
<configuration> <appSettings> <add key="SomeData" value="Hello World!" /> </appSettings> </configuration>
And you can read it this way in C # (reference to the System.Configuration assembly required):
Console.WriteLine( "Your config data: {0}", ConfigurationManager.AppSettings["SomeData"]);
Note that you need to avoid entering data into an XML file; for example, & would become &
source share