Check out example codes for "c# settings file". It will help you in understanding the concepts better.

Code Example 1

// 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

Learn ReactJs, React Native from akashmittal.com