Reading and Writing files in C++. How can you tell if a file was successfully opened in C++?
assume inFile was defined as an ifstream object
a. test ifstream and see if it is true
b. test inFile and check if it is true
c. test open(inFile) == true
d. check if inFile returns an error.
No comments:
Post a Comment