Jeff,
When you say add new values ot a configuration file, i assume you mean the
application configuration files. Please see example below.
<Configuration>
<appSettings>
<add key="NewKey" value="MyNewValue" />
</appSettings>
</Configuration>
And to read the configurations back you can do something like
string MyValue =
System.Configuration.ConfigurationSettings.AppSettings["NewKey"];
Regards
Scott Blood
C# Developer
UJ said:
How do you add a new value to a configuration file through the
configuration block through code? When I try and add a new value I get an
exception.
TIA - Jeff.