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