Multiple choice

Which of the following is not used for reading a text file?

  1. get(ch) function

  2. geline() function

  3. extraction operator

  4. open() function

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

The get(ch), getline() and extraction operators can be used to read a text file. But open() function can be used only to open the file in a particular mode.