title: c++ boost library - writing to ini file without overwriting?
body: <p>im trying to write an ini file using boost library's ini parser and property tree.
  The file is written in stages - i mean every function writes a portion of it.
  At the end im left with only the last output instead of having everything written down.</p>
  
  <p>Sample code i use while writing: </p>
  
  <pre><code>property_tree::ptree pt;
  string juncs=roadID;
  size_t pos = juncs.find_last_of("j");
  string jstart = juncs.substr(0,pos);
  string jend = juncs.substr(pos,juncs.length());
  pt.add(repID + ".startJunction", jstart);
  pt.add(repID + ".endJunction", jend);
  write_ini("Report.ini", pt);
  </code></pre>
  
  <p>How can i use the write_ini function without overwriting the rest of the text??</p>