c# read from settings file code example
Example: c# settings file
// Write Setting
// The scope of the settings file must be set to user in order for it not to be read-only
SettingsFile.Default.MySetting = "A setting";
SettingsFile.Default.Save(); // In order to save all the changes
// Read Setting
string myvalue = SettingsFile.Default.MySetting; // retrieve a setting of type string