TJSONIniFile.Create constructor
Creates a new TJSONIniFile instance
Declaration
constructor Create(const AFileName: string;
AOptions: TIniFileOptions=[]); override; overload
constructor Create(AStream: TStream; AOptions: TJSONOptions); overloadArguments
AFileName | The file name for the JSON ini file |
AOptions | Ini file options or JSON parsing options |
AStream | Stream containing JSON data to parse |
Description
Create creates a new
TJSONIniFile instance.
The constructor has two overloaded forms:
-
Create(AFileName, AOptions)- Creates an instance that reads from and writes to the specified file -
Create(AStream, AOptions)- Creates an instance that reads from the provided stream
If the file specified in AFileName does not exist, a new empty JSON object is created.
If the file exists, it is parsed as JSON and loaded into memory.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
