Talk:Using INI Files
This part of the example is superfluous:
... if not FileExists(IniFile) then begin Sett := TIniFile.Create(IniFile); Sett.UpdateFile; // Create empty file. Sett.free; end;
OK, I have in my notes not to do that but I cannot demonstrate it leading to problems now ! So I don't know where I got that idea from. I will remove that section, thanks Bart. --Dbannon (talk) 02:24, 25 April 2021 (CEST)
"Warning: The current implementation if TIniFile.ReadBool has an odd behaviour: if you do only specify the ifoWriteStringBoolean option, but omit the TIniFile.BoolTrueStrings array, TIniFile.ReadBool will always return false, regardless of what is contained in the .ini file."
I asked on the ML wether that is intentional or a bug.--Bart (talk) 13:08, 16 March 2022 (CET)