How could you check to see if a file exists?
How could you check to see if a file exists?
"If you tell the truth, you don't have to remember anything"
-Mark Twain
this is what i usually do:
Code:ifstream load("file.txt"); //open file if (!load){ //if file does not exist cout<<"Error: Cannot open file"<<endl; return false; }