common-lispStreams


Syntax

  • (read-char &optional stream eof-error-p eof-value recursive-p) => character
  • (write-char character &optional stream) => character
  • (read-line &optional stream eof-error-p eof-value recursive-p) => line, missing-newline-p
  • (write-line line &optional stream) => line

Parameters

ParameterDetail
streamThe stream to read from or write to.
eof-error-pShould an error be signalled if end of file is encountered.
eof-valueWhat value should be returned if eof is encountered, and eof-error-p is false.
recursive-pIs the read-operation called recursively from READ. Usually this should be left as NIL.
characterThe character to write, or the character that was read.
lineThe line to write, or the line that was read.