Write a tree node, that represents an ini section, to an ini file.
bool tree_write_ini_section( TreeNode & trIniSection, INIFile & iniFile, bool bClearSection = false, bool bLabelAsKey = true )
true for success, false for error
EX1
//Clear and Write "Other" section of origin.ini void tree_write_ini_section_ex1() { Tree trIniSection; INIFile iniFile("Origin.ini"); if(tree_read_ini_section(trIniSection, iniFile, "Other")) { if(trIniSection.Other) trIniSection.Other.AddNumericNode(0,"MySetting"); } if(tree_write_ini_section(trIniSection, iniFile, true)) out_tree(trIniSection); }
tree_read_ini_section
origin.h