IniFile

An inifile wrapper.

Constructors

this
this(string fileName)

Creates a new instance of IniFile.

Members

Functions

addSection
void addSection(string section)

Adds a new section to the inifile.

close
void close()

Closes the inifile and writes its text if any changes has occured.

exists
bool exists()

Checks whether the inifile exists or not.

getSection
auto getSection(string section)

Gets a specific section of the inifile.

hasKey
bool hasKey(string section, string key)

Checks whether the inifile has a specific key.

hasSection
bool hasSection(string section)

Checks whether the inifile has a specific section.

open
void open()

Opens the inifile and parses its text.

read
auto read(string section, string key)

Reads an entry from the inifile.

write
void write(string section, string key, T value)

Writes an entry to the inifile.

Properties

fileName
string fileName [@property getter]

Gets the filename of the inifile.

sectionNames
string[] sectionNames [@property getter]

Gets all the section names.

sections
IniSection!(sync)[] sections [@property getter]

Gets all the sections.

Meta