set08_2 - C I/O streams 1 The C I/O Library Continued...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1 C++ I/O streams C++ I/O streams
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Last modified: Jan. 2001 1998 Dr. M. Moussavi 2 The C++ I/O Library - Continued The C++ I/O Library - Continued Input/Output facilities are not defined within the C++ language. Its implemented in C++ and provided as a component of a C++ standard library. As its lowest level, a file is interpreted simply as a sequence, or stream of bytes. One aspect of the I/O library is to manage the transfer of these bytes. At the user level a file consists of a sequence of possibly intermixed data types.
Background image of page 2
Last modified: Jan. 2001 1998 Dr. M. Moussavi 3 Simplified I/O Hierarchy Simplified I/O Hierarchy ios ostream iostream ofstream fstream ifstream istream ostringstream istringstream istringstream
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Last modified: Jan. 2001 1998 Dr. M. Moussavi 4 The C++ I/O Library - Continued The C++ I/O Library - Continued File manipulation using the input and output operations is also supported. ifstream, derived from istream, ties file to the program for input ofstream, derived from ostream, ties a file to the program for output. fstream, derived from iostream, ties a file to the program for both input and output.
Background image of page 4
Last modified: Jan. 2001 1998 Dr. M. Moussavi 5 I/O Stream Operators and Function I/O Stream Operators and Function Extraction operator >>
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/10/2011 for the course ENEL 409 taught by Professor Moussavi during the Fall '11 term at University of Calgary.

Page1 / 14

set08_2 - C I/O streams 1 The C I/O Library Continued...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online