The string, which specifies the file name and file characteristics is defined as below. The file-name must come first followed by at least one space character. After that, the file characteristics can come in any order.
File Access Options
| File Options |
File Type |
| F |
Fixed record type |
| V |
Variable record type |
| D |
Display data type |
| L |
Internal data type* |
| U |
Update file mode |
| O |
Output file mode |
| I |
Input file mode |
| A |
Append file mode |
| S |
Sequential file type |
| R |
Relative file type |
*Note that Internal type files require L - this is because I is used to specify INPUT mode.
Internally, FILE variables build a PAB (peripheral address block) in CPU memory which will be used by #OPEN and all File IO words. Word 0 of the reserved memory is used to point to the actual PAB in VDP memory. The VDP location of the PAB is not determined until #OPEN is executed.
|