Class TIniFile32 (unit IniFiles32) |
Inherits from
TObject
TIniFile32 class
constructor Create(const FileName: String);
- TIniFile32
procedure DeleteKey(const Section, Ident: String);
Deletes the Value of Ident in one Section.
destructor Destroy;
procedure EraseSection(const Section: String);
Erases the whole Section from an Ini-File
function ReadBool(const Section, Ident: String; Default: Boolean): Boolean;
Reads a Bool-Value of Ident in one Section
function ReadInteger(const Section, Ident: String; Default: Longint): Longint;
Reads an Integer-Value of Ident in one Section
procedure ReadSection(const Section: String; Strings: TStrings);
Read all Names of one Section
procedure ReadSections(Strings: TStrings);
Read all Sections of the Ini-File
procedure ReadSectionValues(const Section: String; Strings: TStrings);
Reads all Names + Values of one Section
function ReadString(const Section, Ident: String; Default: String): String;
Reads a String-Value of Ident in one Section.
procedure WriteBool(const Section, Ident: String; Value: Boolean);
Writes a Bool-Value for Ident in one Section
procedure WriteInteger(const Section, Ident: String; Value: Longint);
Writes an Integer-Value for Ident in one Section
procedure WriteString(const Section, Ident: String; Value: String);
Writes a String-Value for Ident in one Section.
procedure LoadFromFile;
procedure SaveToFile;
function GetName(const Line: String): String;
function GetSectionIndex(const Section: String): Integer;
function GetValue(const Line, Name: String): String;
function IsSection(const Line: String): Boolean;
property FileName : String
FFileBuffer : TStringList;
FFileName : String;
constructor Create(const FileName: String);
TIniFile32
procedure DeleteKey(const Section, Ident: String);
Deletes the Value of Ident in one Section.
Note: Only if Section and Ident exist, the Value of Ident will be set to NULL
destructor Destroy;
procedure EraseSection(const Section: String);
Erases the whole Section from an Ini-File
function ReadBool(const Section, Ident: String; Default: Boolean): Boolean;
Reads a Bool-Value of Ident in one Section
function ReadInteger(const Section, Ident: String; Default: Longint): Longint;
Reads an Integer-Value of Ident in one Section
procedure ReadSection(const Section: String; Strings: TStrings);
Read all Names of one Section
procedure ReadSections(Strings: TStrings);
Read all Sections of the Ini-File
procedure ReadSectionValues(const Section: String; Strings: TStrings);
Reads all Names + Values of one Section
function ReadString(const Section, Ident: String; Default: String): String;
Reads a String-Value of Ident in one Section.
The result is Default if
o Section doesn't exists
o Ident doesn't exists
o Ident doesn't have any assigned value
procedure WriteBool(const Section, Ident: String; Value: Boolean);
Writes a Bool-Value for Ident in one Section
procedure WriteInteger(const Section, Ident: String; Value: Longint);
Writes an Integer-Value for Ident in one Section
procedure WriteString(const Section, Ident: String; Value: String);
Writes a String-Value for Ident in one Section.
Note: If Section and/or Ident don't exist, they will be placed in the Ini-File
procedure LoadFromFile;
procedure SaveToFile;
function GetName(const Line: String): String;
function GetSectionIndex(const Section: String): Integer;
function GetValue(const Line, Name: String): String;
function IsSection(const Line: String): Boolean;
property FileName : String
FFileBuffer : TStringList;
FFileName : String;