Which of the following C++ Statements will open a text file "VIEWS. TXT" in which read as well as write activities are required at the same time?
Show answerHide answer
Correct answer: (B) Fstream F ("VIEWS.TXT", ios :: in | ios :: out);
Explanation
An fstream opened with ios::in | ios::out allows both reading and writing. ios::read and ios::write do not exist.