Handbook
Glossary
read-lines ( -- seq )
Factor handbook
»
Input and output
»
Streams
»
Stream utilities
Prev:
stream-lines ( stream -- seq )
Next:
each-line ( ... quot: ( ... line -- ... ) -- ... )
Vocabulary
io
Inputs
None
Outputs
seq
a
sequence
of
string
s
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
:
read-lines
( -- seq )
input-stream
get
stream-lines
;
inline