2. C++ Input/Output (I/O)#

In this chapter, we discuss different means of input-output (I/O) in C++. These are standard I/O, file I/O and string I/O streams. We then demonstrate ways to detect errors in inputs and how to handle them in a program.