Returns
#tif the argument is an output port (or a combined input and output port),#fotherwise.
Flushes any buffered output from the buffer of output-port to the underlying file, device, or object. The
flush-output-portprocedure returns an unspecified values.
maybe-transcoder must be either a transcoder or
#f.The
open-file-output-portprocedure returns an output port for the named file.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 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 output port connected to the standard output or standard error respectively. Whether the port supports the
port-positionandset-port-position!operations is implementation-dependent.
These return default textual ports for regular output and error output. Normally, these default ports are associated with standard output, and standard error, respectively. The return value of
current-output-portcan be dynamically re-assigned using thewith-output-to-fileprocedure from theio simple (6)library (see rnrs io simple). A port returned by one of these procedures may or may not have an associated transcoder; if it does, the transcoder is implementation-dependent.