Read out what somebody wrote in cmd!
Disclaimer: I've never used <filesystem> |
You don't need to for this example anyway; the ifstream being opened successfully is enough to tell that it is a valid file for reading.
1 2 3 4 5
|
std::ifstream in( name );
if ( in )
{
// read file
}
|
Last edited on
Topic archived. No new replies allowed.