7
Working with Files and Streams
One of the most important parts of the C++ standard library is the input/output (I/O) stream-based library that enables developers to work with files, memory streams, or other types of I/O devices. The first part of this chapter provides solutions to some common stream operations, such as reading and writing data, localization settings, and manipulating the input and output of a stream. The second part of the chapter explores the C++17 filesystem
library, which enables developers to perform operations with the filesystem and its objects, such as files and directories.
The recipes covered in this chapter are as follows:
- Reading and writing raw data from/to binary files
- Reading and writing objects from/to binary ...
Get Modern C++ Programming Cookbook - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.