File exists?
Hi!
Is there a function (in Win32 API) that tests if a file exists. Something like: bool FileExists(const char* filename);
Or must I try to open the file?
- pi256
As far as I know, you must try to open the specified file. You would then check if it is sucessfully open. If it is not, return an error stating the file does not exist of the path name is invalid. Something like that. There may be other ways of doing it. I am not sure.
Edem Attiogbe
Edem Attiogbe
Edem Attiogbe
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement