INI Functions

These functions can be used to manipulate INI files:

IniReadValue Reads a value from an INI file
IniWriteValue Write a value to an INI file

The following parameters can be used with the functions above:

FileName The filepath of the INI file. If no path is specified, the INI file is searched in the Windows directory (C:\WINDOWS)
Section The name of the section where the value is located. Sections inside INI files are always surrounded by "[" and "]"
ValueName The name of the value that should be accessed.

Example:

'to access the following value inside the INI file PU.INI:
'[PowerUser]
'Enable=1

'you can write the following code:
i=IniReadValue("PU.INI","PowerUser","Enable")

'to write it, use this code:
Call IniWriteValue("PU.INI","PowerUser","Enable","0")