Multiple choice technology programming languages

The class that in C++ for file input is

  1. a) ifstream

  2. b) ofstream

  3. Both a and b

  4. none of the above

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

ifstream is the C++ standard library class specifically designed for reading input from files. ofstream is for output (writing files), making ifstream the correct choice for file input operations.