Reads all sections in a standard format .ini file.
IniReadSectionNames ( "filename" )
Parameters
filename | The filename of the .ini file. |
Return Value
Success: | Returns an array of all section names in the INI file. |
Failure: | Sets @error on failure. |
Remarks
A standard ini file looks like:
Related
IniDelete, IniWrite, FileReadLine, IniRead, IniReadSection
Example
$var = IniReadSectionNames(@WindowsDir & "\win.ini")
If @error Then
MsgBox(4096, "", "Error occured, probably no INI file.")
Else
For $i = 1 To $var[0]
MsgBox(4096, "", $var[$i])
Next
EndIf