Multiple Choice
Which of the following statements opens a file named 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) ;
E) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: Which of the following is the directive
Q2: The ios::hardfail bit is set when an
Q3: Which of the following means accessing information
Q4: Which of the following is the member
Q6: When a file is opened, the file
Q7: Which of the following is the state
Q8: In order, the three-step process of using
Q9: Closing a file causes any unsaved information
Q10: To set up a file to perform
Q11: Which of the following is the member