Intrinsic-29 FOpen |
Top Previous Next |
29: handle:= FOpen("drive:path\filename.ext", mode);
This intrinsic opens a file and returns its handle. The file is specified by a string containing the file name and an optional drive and path name.
"Mode" is 0 for read and 1 for write.
When a file is opened for writing, if it already exists, its contents are discarded; if it does not exist, a new one is created.
Once a file has been opened with the FOpen intrinsic, the "FSet" intrinsic is used to apply the handle to device-3.
|