read-line

Reads in one line of elements from the stream starting from the stream’s current position.  The type of the collection returned depends on the collection underlying the stream.  Handles end-of-stream conditions just as read-element does.

The second return value will be #f when the end of the stream is discovered before a newline, and #t otherwise.

The newline may be ‘\r’, ‘\n’, or ‘\r\n’.

Exported from

Modifiers

open

Arguments

streamAn instance of <stream>.
on-end-of-stream:An instance of <object>.  The default is #f.

Values

sequence-or-eofAn instance of <sequence> or the on-end-of-stream: value.
newline?An instance of <boolean>.
Reads the next element from the stream and advances the stream’s position.
The streams module.
The superclass of all stream classes.
The class of all Dylan objects.
The class of collections whose keys are consecutive integers starting from zero.
The class of boolean values.