read-partial ( n -- seq )
Factor handbook » Input and output » Streams » Default input and output streams

Prev:read-until ( seps -- seq sep/f )
Next:read-partial-into ( buf -- buf-slice more? )


Vocabulary
io

Inputs
nan integer


Outputs
seqa byte-array, a string, or f


Word description
Reads at most n elements from input-stream and returns them in a sequence. This word should be used instead of read when processing the entire element a chunk at a time, since on some stream implementations it may be slightly faster.

Definition