I know that there is a method (Win32 API, I think) that can be used to check for the existence of a file or folder within a program. You simply pass the path of the file or folder as a char* to the function.
Do you mean checking the existence of a file within the program Directory? Or do you mean checking the existence of a file, by calling a function in your program?
Either way, call "bool __fastcall FileExists(AnsiString Filename);"
That works for files.
For folders, you need to use "bool __fastcall DirectoryExists(AnsiString Directory);"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.