Input and Output Four two arm spirals, warped in hyperbolic space. This chapter describes input and output operations. All input and output operations are performed through ports .
Ports are first-class objects, like any other object in Scheme.
There are initially two ports in the system, the current input port and the current output port. In an interactive session, these ports usually point to the terminal input and output streams. Several ways to open new ports are provided. An input port often points to a finite stream, e.g., an input file stored on disk. This section describes operations for manipulating input ports.