next up previous contents
Next: ReadOffsetLine Up: Input and Output Functions Previous: OpenPipe

ReadLine

Calling Sequence:
ReadLine(
t)
Parameters:
t : a prompt

Synopsis: Reads one statement from the current input stream, evaluates the statement and return its value. This statement should only be used from within a procedure.

Examples:

> x := proc() 
>   t := ReadLine('prompt: ');
>   lprint('The user entered: ',t);
> end;
> x();

See also: readpipe, OpenPipe, ReadLine, ReadOffsetLine




Gaston Gonnet
1998-09-15