RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIniFile Class

TIniFile stores and retrieves application-specific information and settings from INI files.

Pascal
TIniFile = class(TCustomIniFile);
C++
class TIniFile : public TCustomIniFile;

IniFiles

TIniFile enables handling the storage and retrieval of application-specific information and settings in a standard INI file. An INI file stores information in logical groupings, called "sections." Within each section, actual data values are stored in named keys. Keys take the form:

<keyname>=<value>

A FileName is passed to the TIniFile constructor and identifies the INI file that the object accesses.

Note: On Windows, a related object, TMemIniFile, works the same way as TIniFile, but buffers writes in memory to minimize disk access.
Note: On Linux, TIniFile is the same as TMemIniFile.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!