IniFileClose Function

Action

Closes an initialization (.ini) file on the host system.

Syntax

IniFileClose(hIniFile)
Variable Description
hIniFile A handle to the file to close. HINIFILE.

Notes

To retrieve the handle to the file (of type HINIFILE), use a call to IniFileOpen.

IniFileClose raises an exception if the file cannot be written and closed.

All set actions, such as IniFileSetValue, are written to the INI file when IniFileClose is invoked.

This function is not designed for remote access.

Example

HINIFILE hIni
hIni = IniFileOpen ("myapp.ini")
// ...
IniFileClose(hIni)