How to Get and Write Key Values To and From App.Config.
On how to change values in appSettings section in your app.config file: config.AppSettings.Settings.Remove(key); config.AppSettings.Settings.Add(key, value); does the job. Of course better practice is Settings class but it depends on what are you after.