Quantcast
Channel: Reading and writing to a custom config in c# - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by Simeon Bartley for Reading and writing to a custom config in c#

If anyone does need to save changes to a custom config file (in this instance for a config file with the same name as the dll assembly):ExeConfigurationFileMap fileMap = new...

View Article



Answer by Tommaso Belluzzo for Reading and writing to a custom config in c#

Why don'y you just use the settings designer (Settings.settings file in your project)?

View Article

Answer by theodox for Reading and writing to a custom config in c#

If all you need is really simple key-value pairs (like an old .ini or .cfg file), there's also local storage from ApplicationData.Current:ApplicationData.Current.LocalSettings.Values["test"] = "Setting...

View Article

Answer by Richard Schneider for Reading and writing to a custom config in c#

I would have my custom config as a class and then use the XmlSerializer to read and write the config values.public class MyConfig{ const string configPath = @"..."; public string Setting1 { get; set; }...

View Article

Reading and writing to a custom config in c#

Is there a lib in c# that will allow you to read and write to a config or some kind of profile?I am not talking about the app.config but more like a custom.config similar to the ol .ini file where...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images