Chapter 5 Quiz Starting Out With C++ 036

Reading and Writing files in C++.  What does the following statement do?

ifstream inFile("NewHires.txt");

a. defines a input file stream  named inFile and opens the file NewHires.txt.
b. defines the input stream but does not open it.
c. checks to see if the file NewHires.txt exists
d. none of the above.  You can't do all that in one statement

No comments:

Post a Comment