FireDAC.Stan.Util.TFDIniFile

From RAD Studio API Documentation
Jump to: navigation, search

System.IniFiles.TMemIniFileSystem.IniFiles.TCustomIniFileSystem.TObjectTFDIniFile

Delphi

TFDIniFile = class(TMemIniFile)

C++

class PASCALIMPLEMENTATION TFDIniFile : public System::Inifiles::TMemIniFile

Properties

Type Visibility Source Unit Parent
class public
FireDAC.Stan.Util.pas
FireDAC.Stan.Util.hpp
FireDAC.Stan.Util FireDAC.Stan.Util

Description

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

FireDAC.Stan.Util.TFDIniFile inherits from System.IniFiles.TMemIniFile. All content below this line refers to System.IniFiles.TMemIniFile.

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

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.

See Also

Code Examples