Handbook
Glossary
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
seq
a
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
USING:
namespaces
;
IN:
io
:
read-contents
( -- seq )
input-stream
get
stream-contents
;
inline