home *** CD-ROM | disk | FTP | other *** search
- on FindFile AFileName
- TempObj = new(xtra("fileio"))
- if objectp(TempObj) then
- if the machineType = 256 then
- repeat with i = 67 to 90
- openfile(TempObj, numToChar(i) & ":\" & AFileName, 1)
- if status(TempObj) = 0 then
- closeFile(TempObj)
- return numToChar(i) & ":\"
- end if
- end repeat
- else
- openfile(TempObj, AFileName, 1)
- if status(TempObj) = 0 then
- closeFile(TempObj)
- return 1
- end if
- end if
- TempObj = 0
- return 0
- else
- ShipError(getError(#fileio))
- end if
- end
-