getString
Retrieves a value from a
.inifile.Method of
Syntax
String getString (
String section,
String key);Parameters
The method has the following parameters:
sectionSection in the file, such as " boot"or "drivers".keyThe key in that section whose value to return. Returns
The value of the key or an empty string if none was found.
Description
The
getStringmethod is similar to the Windows API functiongetPrivateProfileString. Unlike that function, this method does not support using a null key to return a list of keys in a section.Example
To get the name of the wallpaper file from the desktop section of the
win.inifile, use this call:
ini = getWinProfile (getFolder("Windows"), "win.ini");
var wallpaperValue = ini.getString ("Desktop", "Wallpaper");
| Netscape Communications devedge.netscape.com |