Multiple Choice
Which of the following statements opens the file info.txt for both input and output?
A) dataFile.open("info.txt", ios::in && ios::out) ;
B) dataFile.open("info.txt", ios::in , ios::out) ;
C) dataFile.open("info.txt", input || output) ;
D) dataFile.open("info.txt", ios::in | ios::out) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: The ios::hardfail bit is set when an
Q6: When a file is opened, the file
Q12: This state bit can be tested to
Q13: This data type can be used to
Q14: To set up a file to perform
Q15: What is true about the following statement?<br><img
Q20: To access files from a C++ program,
Q23: The setprecision manipulator cannot be used to
Q25: When you store data in a variable,
Q35: The end-of-file marker is automatically written<br>A) when