ReadDouble
Read key value that has double type
double ReadDouble( LPCSTR lpcszSection, LPCSTR lpcszKey, double dDefault )
EX1
void INIFile_ReadDouble_ex1() { // reads and prints all the key values in all sections that has double type INIFile ini("filename.ini"); StringArray saSections, saKeys; ini.GetSectionNames(saSections); for( int iSection = 0; iSection < saSections.GetSize(); iSection++ ) { printf("%s\n", saSections[iSection]); ini.GetKeyNames(saKeys, saSections[iSection]); for( int iKey = 0; iKey < saKeys.GetSize(); iKey++ ) { double dVal = ini.ReadDouble(saSections[iSection], saKeys[iKey], NANUM); printf(" %s = %lf\n", saKeys[iKey], dVal); } } }
INIFile::ReadString
origin.h