Toshiba KB-80 Computer Keyboard User Manual


 
- 54 -
OPEN
Function Opens a file.
Format OPEN <file designation> [FOR <file mode> ] AS [#] <file number> [LEN= <record
length> ]
Term <file designation>: The file name to be opened should be specified.
<file mode>: The type of file should be specified.
OUTPUT Sequential access / New output mode
INPUT Sequential access / Input mode
APPEND Sequential access / Append mode
RANDOM Random access / Input/output mode
Omitted Random access / Input/output mode
<file number>: An integer between 1 and 9
<record length>: The record length in the random access mode should be specified
in bytes. (Range: 1 to 32767, or 128 if the designation is omitted)
When the file specified in <file number> is a disk file, the record
length is the number of bytes for the record specified in the FIELD
statement.