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);"
Chris