Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking File existence

Status
Not open for further replies.

nicasa

Programmer
Feb 3, 2003
54
ES
Hi There,

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.

What is it called ?

regards,

Steven Matthews
 
How about "extern PACKAGE bool __fastcall FileExists(const System::AnsiString FileName);" ???
Should do the trick i believe.

Totte
 
Yeah, that's the best method I know of in BCB.
You can also use findfirst if you want to be strictly ansi.
The helpfiles should have it in there.
DJL

Common sense is what tells you the world is flat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top