I have function that writes one section of ini file:
boolean saveSSVar()
{
using boost::property_tree::ptree;
ptree pt;
pt.put(SRV_ID, ID);
pt.put(SRV_LOG_LEVEL, LogLevel);
write_ini( INI_FILE_NAME, pt );
return true;
}
Problem is that it overwrites whole file instead one section. How to solve this problem?