| READLIST (RL) | |
| Syntax | READLIST RL (READLIST channel) (RL channel)
|
| Explanation | READLIST reports in the form of a list the next line (up to a carriage return) from the input stream. If no line is waiting to be read and the input stream is the Listener, READLIST waits for input from the keyboard.
A channel number may be entered as an optional input. If present, READLIST reads from that channel instead of reading from the input stream. This makes it easier to switch among multiple input streams. |
| Examples | TO ASKIT PR [WHAT ARE YOUR FAVORITE FOODS?] MAKE "FOODS READLIST PR [I KNOW A RESTAURANT WHERE THEY SERVE] PR :FOODS PR [THAT WOULD MAKE YOUR MOUTH WATER.] END ASKIT defined ASKIT WHAT ARE YOUR FAVORITE FOODS? JAM, PEACHES, AND BEEF JERKY I KNOW A RESTAURANT WHERE THEY SERVE JAM, PEACHES, AND BEEF JERKY THAT WOULD MAKE YOUR MOUTH WATER. |