Which function is used to check if a file exists in C++?
A. file.exists()
B. exists(file)
C. file.opened()
D. open(file)
Answer: Option B
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