Checking if a file exists
Is there a function that checks the presence of a file in MSVC++ 6.0? (Like the __file_exists() function in DJGPP)
You can use CreateFile with the OPEN_EXISTING flag. If it fails then the file doesn''t exist.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement