#t if the argument is an input port (or a combined inputand output port), and returns
#fotherwise.
Returns
#tif thelookahead-u8procedure (if input-port is a binary port) or thelookahead-charprocedure (if input-port is a textual port) would return the end-of-file object, and#fotherwise. The operation may block indefinitely if no data is available but the port cannot be determined to be at end of file.
Maybe-transcoder must be either a transcoder or
#f.The
open-file-input-portprocedure returns an input port for the named file. The file-options and maybe-transcoder arguments are optional.The file-options argument, which may determine various aspects of the returned port (see R6RS File Options), defaults to the value of
(file-options).The buffer-mode argument, if supplied, must be one of the symbols that name a buffer mode. The buffer-mode argument defaults to
block.If maybe-transcoder is a transcoder, it becomes the transcoder associated with the returned port.
If maybe-transcoder is
#for absent, the port will be a binary port and will support theport-positionandset-port-position!operations. Otherwise the port will be a textual port, and whether it supports theport-positionandset-port-position!operations is implementation-dependent (and possibly transcoder-dependent).
Returns a fresh binary input port connected to standard input. Whether the port supports the
port-positionandset-port-position!operations is implementation-dependent.
This returns a default textual port for input. Normally, this default port is associated with standard input, but can be dynamically re-assigned using the
with-input-from-fileprocedure from theio simple (6)library (see rnrs io simple). The port may or may not have an associated transcoder; if it does, the transcoder is implementation-dependent.