Streams

What's a stream?

A stream is a "flow" of characters (or other kind of data).

You've been using streams

Although we didn't call them streams, that's exactly what cin and cout are. Later we'll talk about another stream, cerr that's also automatically available

You can define your own streams that are "connected" to other input/output devices, usually a file.

As we look at using streams to perform file input/output, notice that it works just like we discussed when talking about cin and cout.


Last Modified: Monday, 28-Aug-2006 10:15:54 EDT