SyntaxFix
Write A Post
Hire A Developer
Questions
You can use std::ifstream, funcion like is_open, fail, for example as below code (the cout "open" means file exist or not):
std::ifstream
is_open
fail
cited from this answer