How do you check if a file exists in C++ before opening it?
A. file.exists()
B. exists(file)
C. file.opened()
D. open(file)
Answer: Option A
Related Questions on File Handling in C plus plus
Which header file is required for file handling in C++?
A. <iostream>
B. <fstream>
C. <file>
D. <filestream>

Join The Discussion