Create a new instance of TIniFile.
Source position: inifiles.pp line 239
public constructor TIniFile.Create( |
const AFileName: string; |
AOptions: TIniFileOptions = [] |
); override; overload; |
AStream: TStream; |
AOptions: TIniFileOptions = [] |
); overload; |
AStream: TStream; |
AEscapeLineFeeds: Boolean |
); overload; |
AStream: TStream; |
ADefaultEncoding: TEncoding; |
AOptions: TIniFileOptions = [] |
); |
AStream: TStream; |
ADefaultEncoding: TEncoding; |
AOwnsEncoding: Boolean; |
AOptions: TIniFileOptions = [] |
); |
AFileName |
|
Filename to read from. |
AOptions |
|
Initial value for Options property. |
AStream |
|
Stream to read ini data from. |
AOptions |
|
Initial value for Options property. |
AStream |
|
Stream to read ini data from. |
AEscapeLineFeeds |
|
Should escaping of linefeeds be enabled ? |
AStream |
|
Stream to read ini data from. |
ADefaultEncoding |
|
Default encoding. If empty, the system encoding is used. |
AOptions |
|
Initial value for Options property. |
AStream |
|
Stream to read ini data from. |
ADefaultEncoding |
|
Default encoding. If empty, the system encoding is used. |
AOwnsEncoding |
|
Does the ini file instance own the encoding or not ? |
AOptions |
|
Initial value for Options property. |
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.
|
Abstract ini file object. |
|
|
Inifile cached in memory. |
|
|
Options currently in effect. |