a stream can be used for input and output