Purpose |
Read one line of text from the standard input device. |
Syntax |
STDIN LINE a$ |
Remarks |
If data is available, it is placed in the a$
variable; otherwise, an empty
|
Restrictions |
STDIN LINE does not work with pipes. |
See also |
CONSIN, CONSOUT, GETSTDERR, GETSTDIN, GETSTDOUT, PRINT, STDEOF, STDERR, STDOUT |
Example |
WHILE NOT STDEOF ' loop until end-of-file or CTRL+Z is reached STDIN LINE a$ ' read a line of data a$ = UCASE$(a$) ' convert it to upper case STDOUT a$ ' write it to STDOUT WEND |