To use this Tool in your project download latest version and add reference of "SimpleConfigEditor.dll" to your project:
//Create an instance of ConfigEditor Class:
//Make sure that your Win/Web Application has write and read privilege to selected config path 

//In Web
SimpleConfigEditor.ConfigEditor cfg = new SimpleConfigEditor.ConfigEditor(Server.MapPath("config.xml"));

//In Win App
SimpleConfigEditor.ConfigEditor cfg = new SimpleConfigEditor.ConfigEditor("config.xml");

//Set a Value:
cfg.Set("KEY", "VALUE");

//Get a Value:

//Get a Value with Default Value, if Key Not Exist:
cfg.Get("KEY", "DefaultValue");

//Delete a Key from your Config File:

comments powered by Disqus
Fork me on GitHub