getWinProfile
Constructs an object for working with a Windows .ini file.
Method of
Syntax
WinProfile getWinProfile ( Object folder, String file);Parameters
The
getWinProfilemethod has the following parameters:
folderAn object representing a directory. You create this object by passing a string representing the directory to the getFolder method. fileA relative pathname to an initialization file in the directory specified by the folderparameter, such as"royal/royal.ini".Returns
Description
The
getWinProfilemethod creates an object for manipulating the contents of a Windows .ini file. Once you have this object, you can call its methods to retrieve strings from the file or to add strings to the file. For information on the returned object, seeWinProfile.This method returns null on Unix and Macintosh platforms.
Example
To edit the win.ini file, you would create a WinProfile object with this call:
var myWinProfileObj = getWinProfile (getFolder("Windows"), "win.ini");
| Netscape Communications devedge.netscape.com |