Which of the following is used to create a stream that performs both input and output operations?
A. ofstream
B. ifstream
C. iostream
D. fstream
Answer: Option D
Related Questions on File Handling in C plus plus
Which header file is required for file handling in C++?
A. <iostream>
B. <fstream>
C. <file>
D. <filestream>

Join The Discussion