Back to Multiple Choice Quiz
Testing If a File Opened Successfully
C++ quiz · Question 72After opening a file, which code correctly checks whether the file stream opened successfully?
ifstream inFile("data.txt");After opening a file, which code correctly checks whether the file stream opened successfully?
ifstream inFile("data.txt");