company logo

IniFile :: createSection - Add new section

The function adds a new section with the name passed in sName to the ini-file. This automatically closes the previous section. The new section is added to the file. The function changes the currently selected section (section()).

Notes:

In order to access hierarchical sub-sections, a section name hierarchy may be passed by separating section levels by dots for xml configuration files.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation details

bool IniFile  :: createSection ( odaba::String &sName )
  • sName - Name