/robowaifu/'s C++ learning textbook chapter 10
Input and Output Streams
“Science is what we have learned about how to keep from fooling ourselves.” —Richard P. Feynman
"In this chapter and the next, we present the C++ standard library facilities for handling input and output from a variety of sources: I/O streams. We show how to read and write files, how to deal with errors, how to deal with formatted input, and how to provide and use I/O operators for user-defined types. This chapter focuses on the basic model: how to read and write individual values, and how to open, read, and write whole files. The final example illustrates the kinds of considerations that go into a larger piece of code. The next chapter addresses details."
- § 10.4 Opening a file - part a
- § 10.4 Opening a file - part b
- § 10.4 Opening a file - part c
- § 10.5 Reading and writing a file
- § 10.6 I/O error handling - part a
- § 10.6 I/O error handling - part b
- § 10.6 I/O error handling - part c
- § 10.6 I/O error handling - part d
- § 10.7 Reading a single value
- § 10.7.1 Breaking the problem into manageable parts - part a
- § 10.7.1 Breaking the problem into manageable parts - part b
- § 10.7.1 Breaking the problem into manageable parts - part c
- § 10.7.2 Separating dialog from function
- § 10.8 User-defined output operators
- § 10.9 User-defined input operators
- § 10.10 A standard input loop
- § 10.11.1 In-memory representation
- § 10.11.2 Reading structured values
- § 10.11.3 Changing representations