Table 1: FOPEN

Parameter Description
Formal designator A byte array that contains the formal file designator of the file to be opened.
Foptions An array of 16 bits defining the kind of file to be opened. (See Table 2)
Aoptions An array of 16 bits defining the way this file is to be accessed.
Recsize An integer value defining the record size of the file to be opened.
Device A byte array defining the name of the device that the file resides upon (DISK, TAPE, etc.).
Filesize A long integer value that defines the number of records this file will contain.
Filenumber An integer value that is passed back from FOPEN. This integer value will be used to identify the file that has been opened to other intrinsics, such as FREAD and FWRITE etc.