home *** CD-ROM | disk | FTP | other *** search
- {*******************************************************}
- { }
- { Delphi Visual Component Library }
- { }
- { Copyright (c) 1995 Borland International }
- { }
- {*******************************************************}
-
- unit IniFiles;
-
- interface
-
- uses WinTypes, Classes;
-
- type
- TIniFile = class(TObject)
- public
- constructor Create(const FileName: string);
- destructor Destroy; override;
- function ReadString(const Section, Ident, Default: string): string;
- procedure WriteString(const Section, Ident, Value: String);
- function ReadInteger(const Section, Ident: string;
- Default: Longint): Longint;
- procedure WriteInteger(const Section, Ident: string; Value: Longint);
- function ReadBool(const Section, Ident: string;
- Default: Boolean): Boolean;
- procedure WriteBool(const Section, Ident: string; Value: Boolean);
- procedure ReadSection(const Section: string; Strings: TStrings);
- procedure ReadSectionValues(const Section: string; Strings: TStrings);
- procedure EraseSection(const Section: string);
- property FileName: string;
- end;
-
- implementation
-