PC Logo Wiki
Advertisement

Syntax

READ

Explanation

READ outputs the first object from the input stream. If no object is waiting to be read, READ waits for input from the keyboard. READ outputs EOF if the end of file is reached.

See also READCHAR, READLINE, READLIST and READQUOTE.

Example

? TO GREETING

> PR [WHAT'S YOUR NAME?]

> MAKE "RESPONSE READ

> PR (SE [HI THERE,] :RESPONSE "\!)

> END

GREETING defined.

? GREETING

WHAT'S YOUR NAME?

? ELEANOR

HI THERE, ELEANOR !

? GREETING

WHAT'S YOUR NAME?

? ELEANOR RIGBY

HI THERE, ELEANOR !

RIGBY is not a Logo procedure.

?

Advertisement