How do I check if a file exists in my program?
Printable View
How do I check if a file exists in my program?
try opening it with an ifstream. If it fails it can't be open. If it can't be opened there is a better then normal chance it doesn't exist
Thank you.