Yes this agrees wity my experience with ini files. That is they load the settings when you call the ReadString or whatever procedure if the file is modified. I wrote a small app to test this and it somewhat confrirms it. Having a quick look at the inifiles VCL source code has got me confused however ;-)

Alister Christie
Computers for People
Phone: 04 471 1849 / Fax: 04 471 1266
PO Box 13085
Johnsonville
Wellington

Dennis Chuah wrote:
The TIniFile class is only a wrapper around the Windows INI file functions.
Windows INI file functions will buffer the file and know when the file has
been updated.

TMemIniFile loads the entire file into a hash table and allows you to
manipulate the contents in memory.

----- Original Message -----
From: "Jeremy Coulter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 22, 2004 8:12 AM
Subject: [DUG] Ini files



HI All.
This is one of those...."I think I should know the answer to this one"
questions.

With INI files, when you call   myINIFile:=TIniFiles.create(myFile);
does it load the inifile into memory? so when you call say
myIniFile.ReadString(b,b,a); does it read off the disk or from memory?

if anyone know can they lt me know?

Cheers,

Jeremy Coulter

_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to