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