Warning: This is the manual of the legacy Guile 2.0 series. You may want to read the manual of the current stable series instead.
Next: R6RS Binary Input, Previous: R6RS Port Manipulation, Up: R6RS I/O Ports [Contents][Index]
Returns #t
if the argument is an input port (or a combined input
and output port), and returns #f
otherwise.
Returns #t
if the lookahead-u8
procedure (if input-port is a binary port)
or the lookahead-char
procedure (if input-port is a textual port)
would return
the end-of-file object, and #f
otherwise.
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-port
procedure 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 #f
or absent,
the port will be a binary port and will support the
port-position
and set-port-position!
operations.
Otherwise the port will be a textual port, and whether it supports
the port-position
and set-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-position
and set-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-file
procedure from the
io 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.
Next: R6RS Binary Input, Previous: R6RS Port Manipulation, Up: R6RS I/O Ports [Contents][Index]