factor/library/io/lines.facts

11 lines
677 B
Plaintext
Raw Normal View History

2006-01-16 02:48:15 -05:00
USING: help io ;
2006-08-16 21:55:53 -04:00
HELP: <line-reader>
2006-01-16 02:48:15 -05:00
{ $values { "stream" "an input stream" } { "new-stream" "an input stream" } }
{ $description "Wraps an input stream in a stream supporting the " { $link stream-readln } " generic word." }
{ $notes "Stream constructors should call this word to wrap streams that do not natively support reading lines. Unix (" { $snippet "\\n" } "), Windows (" { $snippet "\\r\\n" } ") and MacOS (" { $snippet "\\r" } ") line endings are supported." } ;
2006-08-16 21:55:53 -04:00
HELP: lines
2006-01-16 02:48:15 -05:00
{ $values { "stream" "an input stream" } { "seq" "a sequence of strings" } }
{ $description "Reads lines of text until the stream is exhausted, collecting them in a sequence of strings." } ;