home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 24
/
CD_ASCQ_24_0995.iso
/
vrac
/
homonlib.zip
/
FILEXIST.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-04-13
|
623b
|
22 lines
DEFINT A-Z
' $INCLUDE: 'DIR.INC'
' $INCLUDE: 'TRUEFALS.INC'
DECLARE FUNCTION FileExist (file$)
FUNCTION FileExist (file$)
'****************************************************************************
'Returns TRUE or FALSE depending on whether the specified file exists. If
' used with a wildcard, it will return true if any file matches the wildcard.
'****************************************************************************
DIM DirInfo AS DirType 'This one's pretty easy.
f$ = Dir$(file$, DirInfo)
IF LEN(f$) AND DirInfo.ErrorCode = 0 THEN FileExist = TRUE
END FUNCTION