Multiple choice

To use either an input or output file, the program must include which header file?

  1. ifstream.h

  2. ofstream.h

  3. iostream.h

  4. fstream.h

  5. stringstream.h

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

An input/output stream that wraps a file stream buffer, provides functions to open or close a file in addition to those of generic input/output stream