【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.5.2.1 INIFile::DeleteSection
Contents
Description
Delete the section of the given name
Syntax
BOOL DeleteSection( LPCSTR lpSection )
Parameters
- lpSection
- [input] section name
Return
TRUE if succeed else FALSE
Examples
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); }
Remark
See Also
Header to Include
origin.h