Platform | x64, Win32 |
Purpose |
To open a file for reading or writing. |
Syntax |
SUBROUTINE OPENRW@(FILE, SID, ERROR_CODE)
|
Description |
This routine opens a file FILE for reading or writing and returns the identifier SID for use with other file handling routines. If the file does not exist it is created, however an existing file is not emptied and may be over-written at the current position. If the intended action depends on whether or not a given file exists, then a prior call to OPENR@ can be used to test if it does exist. ERROR_CODE is returned as zero if the operation has succeeded, otherwise it is returned with the relevant system error code. |
See also |
OPENR@, OPENW@, READF@, READFA@, WRITEF@, WRITEFA@, CLOSEF@, FPOS@, FPOS_EOF@ |