lines ( -- seq )
Factor documentation > Factor handbook > Input and output > Streams > Stream utilities
Prev:stream-lines ( stream -- seq )
Next:each-line ( quot -- )


Vocabulary
io

Inputs and outputs
seqa sequence of strings


Word description
Reads lines of text until from the input-stream until it is exhausted, collecting them in a sequence of strings.

Definition
USING: namespaces ;

IN: io

: lines ( -- seq ) input-stream get stream-lines ; inline