home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
273_01
/
filexist.cc
< prev
next >
Wrap
Text File
|
1987-09-25
|
242b
|
13 lines
#include <dir.h>
file_exist(char *fn)
/* Check to see of a Find exists.
RETURN 1 if exist 0 if not.
*/
{
struct ffblk fb;
int rc;
rc=findfirst(fn,&fb,0);
if(rc==0) return(1);
return(0);
}