title: How to parse more than 2 level ini file with Boost
body: <p>I want to have an ini file with more than just 2 levels ... something like this</p>
  
  <pre><code>[Section1]
  Value1 = 10
  Value2 = a_text_string
  
  [Section2]
  [SubSection1]
  Value1=1
  Value2=2
  
  [Section2]
  [SubSection2]
  Value1=a
  Value2=b
  </code></pre>
  
  <p><strong>Qn 1. How to create such ini file?</strong></p>
  
  <p>After that I want to load these values and print them in my application with Boost</p>
  
  <p>*<strong><em>Qn2. Will this work?</strong> If not how can I do that?</em>*</p>
  
  <pre><code>boost::property_tree::ptree pt;
  boost::property_tree::ini_parser::read_ini("config.ini", pt);
  std::cout &lt;&lt; pt.get&lt;std::string&gt;("Section1.Value1") &lt;&lt; std::endl;
  std::cout &lt;&lt; pt.get&lt;std::string&gt;("Section2.Subsection1.Value2") &lt;&lt; std::endl;
  </code></pre>