c++ boost library - writing to ini file without overwriting?
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. Sample code i use while writing: 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); How can i use the write_ini function