I'm really new to .NET and I still didn't get the hang about how config files work.
Every time I search on google about it I get results about web.config, but I'm writing a windows forms application.
I figured out that I need to use the System.Configuration namespace but I'm kinda dumb and the documentation isn't helping.
How do I define that my config file is XYZ.xml? Or does it have a "default" name for the config file name? I still didn't get that.
Also, how do I define a new section, do I really need to create a class which inherits from ConfigurationSection?
I would like to just have a config file with some values like this:
<MyCustomValue>1</MyCustomValue>
<MyCustomPath>C:\Some\Path\Here</MyCustomPath>
Is there a simple way to do it? Can you examplain in a simple way how to read and write from/to asimple configuration file?