|Abbreviation:||C, L, Shift+O|
in BASIC ROM:
|List of all BASIC keywords|
Typ: Command General Programming-Syntax: CLOSE <logical filenumber>
The BASIC-command CLOSE is used for closing opened files or drive numbers, so that the data can be written from the writing puffer on tape or disk. If CLOSE is omitted after opening a file, the data of the file can be incomplete or unreadable. As a rule, CLOSE should be used whenever any of the BASIC-commands CMD, GET#, INPUT# or PRINT# has been used, but no further file access is needed anymore.
The numerical values from 0 until 255 are possible. Beyond that range - with negative values or values higher than 255 - the BASIC-error "?ILLEGAL QUANTITY ERROR IN" line occurs.
10 CLOSE Z (Z is a numerical variable between 0 and 255)