<$BlogRSDUrl$>

Friday, February 06, 2004

File IO
* A stream is an object that formats and holds bytes. You can have an input stream (istream) or an output stream (ostream).
* There are different types of istreams and ostreams: ifstreams and ofstreams for files, istrstreams , and ostrstreams for char* memory (in-core formatting), and istringstreams & ostringstreams for interfacing with the Standard C++ string class.
*One new element has been added here: a manipulator called endl. A manipulator acts on the stream itself; in this case it inserts a newline and flushes the stream (puts out all pending characters that have been stored in the internal stream buffer but not yet output).
*

This page is powered by Blogger. Isn't yours?