6. Streams and I/O

Learning Objectives

By the end of this chapter, you will be able to:

  • Write and read data to/from files or the console using the Standard I/O Library
  • Format and parse data using the in-memory I/O interface
  • Extend standard I/O streams for user-defined types
  • Develop applications that use the I/O Standard Library from multiple threads

In this chapter, we'll develop flexible and maintainable applications using the I/O Standard Library, work with streams, learn how the I/O library can be used in multithreaded applications, and finally learn to format and parse data using the Standard Library.

Introduction

In the previous chapter, we covered one of the most challenging topics – concurrency in C++. We looked at the main ...

Get Advanced C++ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.