Unit 'IniFiles' Package
[Overview][Constants][Types][Classes][Index] [#fcl]

TIniFile

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Ini file implementation.

Declaration

Source position: inifiles.pp line 222

type TIniFile = class(TCustomIniFile)

public

  constructor Create();

  

Create a new instance of TIniFile.

  destructor Destroy; override;

  

Remove the TIniFile instance from memory.

  function ReadString(); override;

  

Read a string.

  procedure WriteString(); override;

  

Write string to file.

  procedure ReadSection(); override;

  

Read the key names in a section.

  procedure ReadSectionRaw();

  

Read raw section.

  procedure ReadSections(); override;

  

Read section names.

  procedure ReadSectionValues(); override; overload;

  

  procedure EraseSection(); override;

  

  procedure DeleteKey(); override;

  

Delete key.

  procedure UpdateFile; override;

  

Update the file on disk.

  property Stream: TStream; [r]

  

Stream from which ini file was read.

  property CacheUpdates: Boolean; [rw]

  

Should changes be kept in memory.

  property WriteBOM: Boolean; [rw]

  

Indicates if a Byte Order Mark (BOM) is written at the start of the .INI file.

end;

Inheritance

TIniFile

  

Ini file implementation.

|

TCustomIniFile

  

Abstract ini file object.

|

TObject

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

TCustomIniFile

  

Abstract ini file object.

TMemIniFile

  

Inifile cached in memory.


Documentation generated on: Nov 23 2024