read-contents ( -- seq )
Factor handbook » Input and output » Streams » Stream utilities

Prev:stream-contents ( stream -- seq )
Next:each-block ( ... quot: ( ... block -- ... ) -- ... )


Vocabulary
io

Inputs
None

Outputs
seqa string or a byte-array


Word description
Reads all elements in the input-stream until the stream is exhausted. The type of the sequence depends on the stream's element type.

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

Definition