Unit 'JsonIni' Package
[Overview][Classes][Index] [#fcl]

TJSONIniFile.Create

Creates a new TJSONIniFile instance

Declaration

Source position: jsonini.pp line 53

public constructor TJSONIniFile.Create(

  const AFileName: string;

  AOptions: TIniFileOptions = []

); override; overload;

constructor TJSONIniFile.Create(

  AStream: TStream;

  AOptions: TJSONOptions

); overload;

Arguments

AFileName

  

The file name for the JSON ini file

AOptions

  

Ini file options or JSON parsing options

Arguments

AStream

  

Stream containing JSON data to parse

AOptions

  

Ini file options or JSON parsing options

Description

Create creates a new TJSONIniFile instance. The constructor has two overloaded forms:

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

UpdateFile

  

Writes the JSON data to file

TCustomIniFile.Create

  

Instantiate a new instance of TCustomIniFile.


Documentation generated on: Jan 27 2026