TIniFile.Create¶
Create a new instance of TIniFile.
Declaration¶
Source position: inifiles.pp line 248
public
constructor Create(const AFileName: string;
AOptions: TIniFileOptions=[]); override; overload; overload;
constructor Create(AStream: TStream; AOptions: TIniFileOptions=[])
; overload; overload;
constructor Create(AStream: TStream; AEscapeLineFeeds: Boolean)
; overload; overload;
constructor Create(AStream: TStream; ADefaultEncoding: TEncoding;
AOptions: TIniFileOptions=[]);
constructor Create(AStream: TStream; ADefaultEncoding: TEncoding;
AOwnsEncoding: Boolean; AOptions: TIniFileOptions=[]);
Description¶
Create creates a new instance of TIniFile and initializes the class by reading the file from disk if the filename AFileName is specified, or from stream in case AStream is specified. It also sets most variables to their initial values, i.e. AEscapeLineFeeds is saved prior to reading the file, and Cacheupdates is set to False.
Default options for the TCustomIniFile.Options property can be specified in AOptions.
See also¶
| Name | Description |
|---|---|
| TCustomIniFile | Abstract ini file object. |
| TMemIniFile | Inifile cached in memory. |
| TCustomIniFile.Options | Options currently in effect. |