Line I/O
--------
`(require 'line-i/o)'
- Function: read-line
- Function: read-line port
Returns a string of the characters up to, but not including a
newline or end of file, updating PORT to point to the character
following the newline. If no characters are available, an end of
file object is returned. The PORT argument may be omitted, in
which case it defaults to the value returned by
`current-input-port'.
- Function: read-line! string
- Function: read-line! string port
Fills STRING with characters up to, but not including a newline or
end of file, updating the PORT to point to the last character read
or following the newline if it was read. If no characters are
available, an end of file object is returned. If a newline or end
of file was found, the number of characters read is returned.
Otherwise, `#f' is returned. The PORT argument may be omitted, in
which case it defaults to the value returned by
`current-input-port'.
- Function: write-line string
- Function: write-line string port
Writes STRING followed by a newline to the given PORT and returns
an unspecified value. The PORT argument may be omitted, in which
case it defaults to the value returned by `current-input-port'.
- Function: display-file path
- Function: display-file path port
Displays the contents of the file named by PATH to PORT. The PORT
argument may be ommited, in which case it defaults to the value
returned by `current-output-port'.