Previous - Registry and INI Section Home - Registry and INI Next - iniWrite


iniRead ( )

Read a key string from a windows INI file

Usage:

iniRead (object me, string section, string key, string filePath)

Parameters:

section (string) - The section name in an INI file excluding the [ ] signs

key (string) - The key name in a INI file without the trailing = sign

filePath (string) - The path to an existing INI file

Returns:

(string) - the value stored in the ini file with the section and key.

Example:

xtRose = xtra("Rosetta").new( )
strINI = xtRose.iniRead( "Mail", "MAPI", "C:\windows\win.ini" )

Notes:

This function returns a string with a maximum size of 16383 characters.


Previous - Registry and INI Section Home - Registry and INI Next - iniWrite