Skip to content

TMemIniFile

Inifile cached in memory.

Declaration

Source position: inifiles.pp line 270

type

  TMemIniFile = class(TIniFile)
  public
    constructor Create(const AFileName: string; 
                  AOptions: TIniFileOptions=[]); overload;
    constructor Create(const AFileName: string; AEscapeLineFeeds: Boolean); overload;
    procedure Clear;
    procedure GetStrings;
    procedure Rename;
    procedure SetStrings;
  end;

Description

TMemIniFile is a simple descendent of TIniFile which introduces some extra methods to be compatible to the Delphi implementation of TMemIniFile. The FPC implementation of TIniFile is implemented as a TMemIniFile, except that TIniFile does not cache its updates, and TMemIniFile does.

Methods

Member Visibility Description
Clear public Clear the data.
Create public Create a new instance of TMemIniFile.
GetStrings public Get contents of ini file as stringlist.
Rename public Rename the ini file.
SetStrings public Set data from a stringlist.
See all Methods

See also

Name Description
TIniFile Ini file implementation.
TCustomIniFile Abstract ini file object.
CacheUpdates Should changes be kept in memory.