First page Back Continue Last page Overview Graphics
I/O Abstraction
We can achieve the separation by designing a common interface for reading any kind of data, and common interface for writing any kind of data.
This interface is implemented by the notion of input and output streams.
Any input/output can be represented as a sequence of bits. For convenience we divide the sequence into a sequence of bytes.