you can use this:

public function bFukeExists(sFile as string) as boolean
if len(dir$(sFile)) = 0 then
bFileExists = false
else
bFileExists = true
end if
end function