stream-readln ( stream -- str/f )
Factor handbook » Input and output » Streams » Stream protocol

Prev:stream-read-partial-into ( buf stream -- buf-slice more? )
Next:stream-flush ( stream -- )


Vocabulary
io

Inputs
streaman input stream


Outputs
str/fa string or f


Generic word contract
Reads a line of input from the stream. Outputs f on stream exhaustion.

Notes
Most code only works on one stream at a time and should instead use readln; see Default input and output streams.

Errors
Throws an error if the I/O operation fails.

Definition

GENERIC: stream-readln ( stream -- str/f )


Methods