DeleteSection
Delete the section of the given name
BOOL DeleteSection( LPCSTR lpSection )
TRUE if succeed else FALSE
EX1
void DeleteSection_ex() { string strSec = "Test", strKey = "Junk"; INIFile ini(STR_XF_GRAPH_SIZE_INI); BOOL bRet = ini.IsSectionName(strSec, TRUE); out_int("IsSection before write: ", bRet); ini.WriteInt(strSec, strKey, 123); bRet = ini.IsSectionName(strSec, TRUE); out_int("IsSection after write: ", bRet); ini.DeleteSection(strSec); bRet = ini.IsSectionName(strSec, TRUE); out_int("IsSection after delete: ", bRet); }
IsSectionName
origin.h