CPP09 W2 M1 Streams and Files Learning Objective Understanding streams Understand the stream class hierarchy Understand the concepts of stream insertion and extraction Use streams for file input and output Distinguish between text and binary file input and output Write programs for random access of data files using: get pointer put pointer seekg() tellg() seekp() tellp() Streams and Files Introduction In simple words, a stream is a sequence of bytes. In input operations, the bytes are transferred from a device (a keyboard, a disk drive, a network connection etc.) to the main memory. Where as in case of output operations, this is reverse. That means, the bytes are transferred from main memory to a device such as a display screen, a printer, a disk drive, network connection, a tape( a file on tape) etc. Streams In C++, a stream is a source or destination for collection of characters. Streams are of two types: Output stream In...