Node:Input, Next:Output, Previous:Ports, Up:Input and output
read | library procedure |
read port | library procedure |
If an end of file is encountered in the input before any characters are found that can begin an object, then an end of file object is returned. The port remains open, and further attempts to read will also return an end of file object. If an end of file is encountered after the beginning of an object's external representation, but the external representation is incomplete and therefore not parsable, an error is signalled. The port argument may be omitted, in which case it defaults to the
value returned by |
read-char | procedure |
read-char port | procedure |
Returns the next character available from the input port, updating
the port to point to the following character. If no more characters
are available, an end of file object is returned. Port may be
omitted, in which case it defaults to the value returned by |
peek-char | procedure |
peek-char port | procedure |
Returns the next character available from the input port,
without updating
the port to point to the following character. If no more characters
are available, an end of file object is returned. Port may be
omitted, in which case it defaults to the value returned by Note: The value returned by a call to |
eof-object? obj | procedure |
Returns #t if obj is an end of file object, otherwise returns
#f. The precise set of end of file objects will vary among
implementations, but in any case no end of file object will ever be an object
that can be read in using |
char-ready? | procedure |
char-ready? port | procedure |
Returns #t if a character is ready on the input port and
returns #f otherwise. If Rationale: |