Sign in Join
FPDoc Onlineexperiment

TCustomIniFile class

In unit IniFiles

Abstract ini file object.

Declaration

pascal
TCustomIniFile = class

Descends from it: TIniFile TJSONIniFile

Description

TCustomIniFile implements all calls for manipulating a .ini. It does not implement any of this behaviour, the behaviour must be implemented in a descendent class like TIniFile or TMemIniFile.

Since TCustomIniFile is an abstract class, it should never be created directly. Instead, one of the TIniFile or TMemIniFile classes should be created.

See also

Properties

EncodingpublicEncoding of the ini file.
FileNamepublicName of the .ini file.
OptionspublicOptions currently in effect.
EscapeLineFeedspublicShould linefeeds be escaped ?
CaseSensitivepublicAre key and section names case sensitive.
StripQuotespublicShould quotes be stripped from string values.
FormatSettingsActivepublicIs FormatSettings used or not.
BoolTrueStringspublicStrings to recognize as boolean True values.
BoolFalseStringspublicStrings to recognize as boolean False values.
OwnsEncodingpublicDoes the ini file instance own the encoding ?

Methods

SetEncodingprotected
CreatepublicInstantiate a new instance of TCustomIniFile.
DestroypublicRemove the TCustomIniFile instance from memory.
SetBoolStringValuespublicSet the boolean string values to use when writing to file.
SectionExistspublicCheck if a section exists.
ReadStringpublicRead a string valued key.
WriteStringpublicWrite a string value.
ReadIntegerpublicRead an integer value from the file.
WriteIntegerpublicWrite an integer value.
ReadInt64publicRead an Int64 value.
WriteInt64publicWrite an Int64 value.
ReadBoolpublic
WriteBoolpublicWrite boolean value.
ReadDatepublicRead a date value.
ReadDateTimepublicRead a Date/Time value.
ReadFloatpublicRead a floating point value.
ReadTimepublicRead a time value.
ReadBinaryStreampublicRead binary data.
WriteDatepublicWrite date value.
WriteDateTimepublicWrite date/time value.
WriteFloatpublicWrite a floating-point value.
WriteTimepublicWrite time value.
WriteBinaryStreampublicWrite binary data.
ReadSectionpublicRead the key names in a section.
ReadSectionspublicRead the list of sections.
ReadSectionValuespublicRead names and values of a section.
EraseSectionpublicClear a section.
DeleteKeypublicDelete a key from a section.
UpdateFilepublicUpdate the file on disk.
ValueExistspublicCheck if a value exists.

Fields

FormatSettingspublicFormat settings to use when reading date/time/float values.

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