home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / INIFILES.INT < prev    next >
Text File  |  1997-02-28  |  1KB  |  39 lines

  1.  
  2. {*******************************************************}
  3. {                                                       }
  4. {       Delphi Visual Component Library                 }
  5. {                                                       }
  6. {       Copyright (c) 1995,96 Borland International     }
  7. {                                                       }
  8. {*******************************************************}
  9.  
  10. unit IniFiles;
  11.  
  12. {$R-}
  13.  
  14. interface
  15.  
  16. uses Windows, Classes;
  17.  
  18. type
  19.   TIniFile = class(TObject)
  20.   public
  21.     constructor Create(const FileName: string);
  22.     function ReadString(const Section, Ident, Default: string): string;
  23.     procedure WriteString(const Section, Ident, Value: String);
  24.     function ReadInteger(const Section, Ident: string;
  25.       Default: Longint): Longint;
  26.     procedure WriteInteger(const Section, Ident: string; Value: Longint);
  27.     function ReadBool(const Section, Ident: string;
  28.       Default: Boolean): Boolean;
  29.     procedure WriteBool(const Section, Ident: string; Value: Boolean);
  30.     procedure ReadSection(const Section: string; Strings: TStrings);
  31.     procedure ReadSections(Strings: TStrings);
  32.     procedure ReadSectionValues(const Section: string; Strings: TStrings);
  33.     procedure EraseSection(const Section: string);
  34.     procedure DeleteKey(const Section, Ident: String);
  35.     property FileName: string;
  36.   end;
  37.  
  38. implementation
  39.