| CLEARINPUT | |
| Syntax | CLEARINPUT (CLEARINPUT channel) |
| Explanation | CLEARINPUT clears all input from the
current input stream. Any further attempt to read from
that stream will result in a Logo error. For the
Listener, CLEARINPUT has no effect. A channel number
may be entered as an optional input. If present,
CLEARINPUT clears that channel instead of the input
stream. This makes it unnecessary to switch among
multiple input streams by changing the value of STANDARD.INPUT. |
| Examples | OPEN "LETTER.TXT MAKE "INPUT.STREAM "LETTER.TXT READLINE Result: [Dear Customer,] READLINE Result: [] CLEARINPUT READLINE I/O error: Read past EOF |