Multiple choice

To open the file for reading purpose, we have to create an object of ____________ class.

  1. iostream

  2. ofstream

  3. ifstream

  4. iofstream

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

The ifstream class is used to create an object for opening a file to read.