Sign in Join
FPDoc Onlineexperiment

TIniFile class

In unit IniFiles

Ini file implementation.

Declaration

pascal
TIniFile = class(TCustomIniFile)

Inheritance

  1. TIniFile
  2. TCustomIniFile

Descends from it: TMemIniFile

Description

TIniFile is an implementation of TCustomIniFile which does the same as TMemIniFile, namely it reads the whole file into memory. Unlike TMemIniFile it does not cache updates in memory, but immediately writes any changes to disk.

TIniFile introduces no new methods, it just implements the abstract methods introduced in TCustomIniFile

See also

Properties

Dirtyprotected
StreampublicStream from which ini file was read.
CacheUpdatespublicShould changes be kept in memory.
WriteBOMpublicIndicates if a Byte Order Mark (BOM) is written at the start of the .INI file.

Methods

ReadIniValuesprotected
MaybeUpdateFileprotected
SetEncodingprotected
CreatepublicCreate a new instance of TIniFile.
DestroypublicRemove the TIniFile instance from memory.
ReadStringpublicRead a string.
WriteStringpublicWrite string to file.
ReadSectionpublicRead the key names in a section.
ReadSectionRawpublicRead raw section.
ReadSectionspublicRead section names.
ReadSectionValuespublicRead names and values of a section.
EraseSectionpublicClear a section.
DeleteKeypublicDelete key.
UpdateFilepublicUpdate the file on disk.

Inherited

From TCustomIniFile (29)

BoolFalseStrings BoolTrueStrings CaseSensitive Encoding EscapeLineFeeds FileName FormatSettingsActive Options OwnsEncoding ReadBinaryStream ReadBool ReadDate ReadDateTime ReadFloat ReadInt64 ReadInteger ReadTime SectionExists SetBoolStringValues StripQuotes ValueExists WriteBinaryStream WriteBool WriteDate WriteDateTime WriteFloat WriteInt64 WriteInteger WriteTime

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.