LispWorks User Guide and Reference Manual > 39 The STREAM Package

NextPrevUpTopContentsIndex

stream-read-line

Generic Function
Summary

Returns a string read from a stream.

Package

stream

Signature

stream-read-line stream => result terminated

Arguments

stream

An input stream.

Values

result

A string or :eof .

terminated

A boolean.

Description

The generic function stream-read-line reads a line of characters from stream and returns this line as a string. If the string is terminated by an end-of-file instead of a newline then terminated is t .

The default method uses repeated calls to stream-read-char , and uses stream-element-type to determine the element-type of its result.

See also

fundamental-character-input-stream
stream-element-type
stream-read-char


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex