| Class TIniFile32 (unit IniFiles32) |
TObject
TIniFile32 class
| Constructors |
constructor Create(const FileName: String);| Functions |
procedure DeleteKey(const Section, Ident: String);
destructor Destroy;
procedure EraseSection(const Section: String);
function ReadBool(const Section, Ident: String; Default: Boolean): Boolean;
function ReadInteger(const Section, Ident: String; Default: Longint): Longint;
procedure ReadSection(const Section: String; Strings: TStrings);
procedure ReadSections(Strings: TStrings);
procedure ReadSectionValues(const Section: String; Strings: TStrings);
function ReadString(const Section, Ident: String; Default: String): String;
procedure WriteBool(const Section, Ident: String; Value: Boolean);
procedure WriteInteger(const Section, Ident: String; Value: Longint);
procedure WriteString(const Section, Ident: String; Value: String);
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;| Properties |
property FileName : String| Events |
| Variables |
FFileBuffer : TStringList;
FFileName : String;| Constructors |
constructor Create(const FileName: String);TIniFile32
| Functions |
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;| Properties |
property FileName : String| Events |
| Variables |
FFileBuffer : TStringList;
FFileName : String;