TIni
Represents the contents of an ini file.
The global section index is defined by INI_GLOBAL_SECTION. You should call Free() when you are finished working with it, to allow it to clean up any resources it is using.
Constructors
Method New()
Creates a new empty TIni instance.
Methods
Method Save(path:String)
Saves the ini file to the specified path.
Method Save(stream:TStream)
Saves the ini file to the specified stream.
Does not close the TStream.
Method CountSections:Int()
Returns the number of sections.
Method GetSection:TIniSection(index:Int)
Returns the section at the given index, or Null if the index is out of bounds.
Method FindSection:TIniSection(name:String)
Finds a section by name.
Returns
The named section, or Null if not found.
Method AddSection:TIniSection(name:String)
Adds a section with the specified name.
There is no check done to see if a section with the specified name already exists - multiple sections of the same name are allowed.
Method RemoveSection(index:Int)
Removes a section at the given index.
Method Free()
Frees instance and associated data.
Functions
Function Load:TIni(path:String)
Loads an ini file at the given path.
Function Load:TIni(stream:TStream)
Loads an ini file from the given stream.
Does not close the TStream.