| READLINE | |
| Syntax | READLINE (READLINE channel) |
| Explanation | READLINE reports the next line (up to a carriage return) from the input stream as a list of ASCII characters. If no line is waiting to be read and the input stream is the Listener, READLINE waits for input from the keyboard. A channel number may be entered as an optional input. If present, READLINE reads from that channel instead of reading from the input stream. This makes it easier to switch among multiple input streams. To output characters from the corresponding ASCII codes, use PRINTLINE. |
| Examples | READLINE ASCII Result: [65 83 67 73 73] READLINE shopping carts Result:[115 104 111 112 112 105 110 10 3 32 99 97 114 116 115] READLINE SHOPPING CARTS Result:[83 72 79 80 80 73 78 71 32 67 65 82 84 83] MAKE "CASE TRUE (letters are now converted to uppercase) READLINE shopping carts Result:[83 72 79 80 80 73 78 71 32 67 65 82 84 83] |