Probably the most commonly used INISection method is ReadString, especially if all you need is to get the string and you do the parsing yourself. For faster extraction of strings, INISection uses the [] operator as an alias for ReadString. This operator takes name of the tag to read from as its operand and returns a C string (char pointer) of the value. Just like ReadString, this points to data inside the INISection so if you want to use it after the INIFile is destroyed, you have to copy it somewhere else. If the tag does not exist, a NULL pointer is returned.
Example:
ini file:
;section header, other tags, etc. ;... tag=value ;... ;more tags and sections...
c++ code:
//include stuff, load inifile, get section, etc //... const c* value = section["tag"]; if(!value) std::cout << "ERROR: Missing tag tag=" << std::endl; std::cout << value; //... //do deinitialization