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

d. dataFile.open("info.txt", ios::in | ios::out);

Computer Science & Information Technology

You might also like to view...

Data macros can only be used with report events

Indicate whether the statement is true or false

Computer Science & Information Technology

Draw the wiremap for a crossover CAT6 UTP cable running Fast Ethernet.

What will be an ideal response?

Computer Science & Information Technology