Path: utzoo!utgpu!news-server.csri.toronto.edu!qucdn!spraggej Organization: Queen's University at Kingston Date: Monday, 11 Feb 1991 20:58:29 EST From: John G. Spragge Message-ID: <91042.205829SPRAGGEJ@QUCDN.QueensU.CA> Newsgroups: comp.lang.pascal Subject: Re: Find File? References: <1129@tesla.njit.edu> Regarding a question about how to check and see if a file exists: There are two methods. The first is to try and open the file with Pascal run-time I/O error halting turned off. This is set by the $I switch; thus, if you include {$I-} in your file, an attempt to open the file will not halt the program. To see whether the file was opened successfully, use the IORESULT function. The second method is to use the FINDFIRST command. You can find all these functions and options documented in your manual. disclaimer: Queen's University supplies me with computer services, not my opinions. John G. Spragge