How To: Write, Modify, Remove, Read Application Settings From Configuration File

Category:
C#, VB.NET, ASP.NET
Type:
Classes
Difficulty:
Intermediate
Author:
Pankaj Banga

Version Compatibility: Visual Basic.NET

More information:
The .NET Framework v1.1 provides the System.Configuration Namespace that exposes methods for reading information from the config file, but there are no methods for modifying the contents. The ConfigFileHelper class wraps various methods that facilitate the task of writing, reading, modifying and removing application settings from your configuration file.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download configfilehelper.zip