O'Reilly logo

The C++ Programming Language, Fourth Edition by Bjarne Stroustrup

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

38. I/O Streams

What you see is all you get.

– Brian W. Kernighan

Introduction

The I/O Stream Hierarchy

File Streams; String Streams

Error Handling

I/O Operations

Input Operations; Output Operations; Manipulators; Stream State; Formatting

Stream Iterators

Buffering

Output Streams and Buffers; Input Streams and Buffers; Buffer Iterators

Advice

38.1. Introduction

The I/O stream library provides formatted and unformatted buffered I/O of text and numeric values. The definitions for I/O stream facilities are found in <istream>, <ostream>, etc.; see §30.2.

An ostream converts typed objects to a stream of characters (bytes):

Image

An istream ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required