Streams
Using Iostreams
C++ uses iostreams as the standard mechanism for input and output. Iostreams allow type-safe insertion and extraction of both user-defined and built-in types into and out of communication streams. The Networking package iostreams classes enable you to use the standard iostreams classes for input and output, using a portal as the underlying source and sink of bytes.