RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMemIniFile Class

TMemIniFile enables buffered storage and retrieval of application-specific information and settings in an INI file.

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

IniFiles

Use TMemIniFile to store and retrieve application-specific information and settings in a Windows 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>

TMemIniFile buffers all changes to the INI file. The INI file is read once, when the object is first created. Data from the INI file is stored in nested string lists. Each section in the INI file occupies one element in the top-most string list, and each element in this may itself contain a string list. Each element in each of the contained string list represents a key within the section. After the data is read, any changes to the data are stored in memory. To write the data from memory back to the associated INI file, call the UpdateFile method. 

All TMemIniFile methods to read, write, and erase sections, keys, and values operate on the in-memory copy of the INI file. 

 

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