Match the following file stream classes in C++ with its functions.
Match the following file stream classes in C++ with its functions.
A. Fstream base — i. Provides support for simultaneous input and output operation
B. If stream — ii. Provides output operation
C. Of stream — iii. Provides operations common to file streams
D. F stream — iv. Provides input operation
Show answerHide answer
Correct answer: (D) A-iii, B-iv, C-ii, D-i
Explanation
fstreambase provides operations common to file streams, ifstream gives input, ofstream gives output, and fstream supports simultaneous input and output.