Function group | Execute on client | Platform(s) |
---|---|---|
FileOps | NO | All |
$openfile(cFilePath[,bReadonly=kFalse])
Opens an existing file. cFilePath is the pathname of the file to be opened. Returns kTrue for success.
The bReadonly parameter is optional. It is a boolean which defaults to false. If you pass true, then $openfile() will open the file in read-only mode.
$openfile() returns a boolean value, which is true if the file was successfully opened.