Interface fir doing I/O

The base interface for doing input and output.