ReadIni$ (function)

Syntax

ReadIni$(section$,item$[,filename$])

Description

Returns a String containing the specified item from an ini file.

Comments

The ReadIni$ function takes the following parameters:

 

Parameter

Description

 

Section$

String specifying the section that contains the desired variable, such as "windows". Section names are specified without the enclosing brackets.

 

Item$

String specifying the item whose value is to be retrieved.

 

Filename$

String containing the name of the ini file to read.

See Also

WriteIni (statement); ReadIniSection (statement)

Notes

If the name of the ini file is not specified, then win.ini is assumed.

If the filename$ parameter does not include a path, then this statement looks for ini files in the Windows directory.

More information

R