WriteDouble
Write key value of double type into INI file.
void WriteDouble( LPCSTR lpcszSection, LPCSTR lpcszKey, double dValue )
EX1
void INIFile_WriteDouble_ex1() { // writes missing value into all the key values in all sections INIFile ini("EBGIF2.ini",FALSE); 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++ ) { ini.WriteDouble(saSections[iSection], saKeys[iKey], NANUM); double dVal = ini.ReadDouble(saSections[iSection], saKeys[iKey], 2.0); printf(" %s = %lf\n", saKeys[iKey], dVal); } } }
INIFile::WriteInt, INIFile::ReadDouble
origin.h