|
|
The examples so far have used the predefined streams, cin and cout. For some programs, reading from standard input and writing to standard output suffices. But other programs need to create streams with alternate sources and sinks for characters. This subtopic discusses the various kinds of streams that are available in the iostream library.