Sign in Join
FPDoc Onlineexperiment

TIniFile.Create constructor deprecated

Member of TIniFilepublicIn unit IniFiles

Create a new instance of TIniFile.

Declaration

pascal
constructor Create(const AFileName: string; 
 AOptions: TIniFileOptions=[]); override; overload
constructor Create(AStream: TStream; AOptions: TIniFileOptions=[])
 ; overload
constructor Create(AStream: TStream; AEscapeLineFeeds: Boolean)
 ; overload
constructor Create(AStream: TStream; ADefaultEncoding: TEncoding; 
 AOptions: TIniFileOptions=[])
constructor Create(AStream: TStream; ADefaultEncoding: TEncoding; 
 AOwnsEncoding: Boolean; AOptions: TIniFileOptions=[])

Arguments

AFileName

Filename to read from.

AOptions

Initial value for Options property.

AStream

Stream to read ini data from.

AEscapeLineFeeds

Should escaping of linefeeds be enabled ?

ADefaultEncoding

Default encoding. If empty, the system encoding is used.

AOwnsEncoding

Does the ini file instance own the encoding or not ?

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 Options property can be specified in AOptions.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.