Go to the first, previous, next, last section, table of contents.


Closing Ports

The following procedures return #t if they successfully close a port or #f if it was already closed. They can also raise exceptions if an error occurs: some errors arising from writing output may be delayed until close. See also section Ports and File Descriptors, for a procedure which can close file descriptors.

primitive: close-port port
Close the specified port object.

primitive: close-input-port port
Close the specified input port object. This procedure is required by R4RS.

primitive: close-output-port port
Close the specified output port object. This procedure is required by R4RS.


Go to the first, previous, next, last section, table of contents.