OpenDiskFile (open)

Open an existing file on disk

Syntax

LOADLIB "wh::files.whlib";

INTEGER FUNCTION OpenDiskFile(STRING path, BOOLEAN writeaccess)

Parameters

STRING path

Path to the file to open.

BOOLEAN writeaccess

True to get write access to the file

Return value

INTEGER

ID of open file, or 0 if file opening failed