Input loop: Difference between revisions

m
m (→‎{{header|Commodore BASIC}}: Grammar change for clarity on command channel.)
Line 649:
 
==={{header|Commodore BASIC}}===
This example should generally work across all Commodore models. It is important to note that when using the reserved variable STATUS (or ST for short) to detect the end of file marker (bit 6), the KERNAL updates this variable based on ''any'' previous I/O operation, including the OPEN command, but makes no indication as to which I/O access the status applies to. Therefore, if using the disk drive, it is best to open the command file number and channel (15) ''before'' opening the actual file on disk or tape, and leave the command channel open while performing the fileoperations isto openedopen the file and operatedaccess onit as shown in the example.
 
<lang CommodoreBASICv2>
113

edits