Retrieves a value from a
String getString ( String section, String key);
The method has the following parameters:
Section in the file, such as "
- The key in that section whose value to return.
The value of the key or an empty string if none was found.
getString method is similar to the Windows API function
getPrivateProfileString. Unlike that function, this method does not support using a null key to return a list of keys in a section.
To get the name of the wallpaper file from the desktop section of the
win.ini file, use this call:
ini = getWinProfile (getFolder("Windows"), "win.ini"); var wallpaperValue = ini.getString ("Desktop", "Wallpaper");