home *** CD-ROM | disk | FTP | other *** search
- { EXISTS.INC }
- {
- Description: Function to test for the existence of a specified file. (This
- version virtually identical to the "Exist" function printed
- in the Turbo Pascal Reference Manual for Versions 1.0 - 3.0.)
-
- Author: "Frank Borland"
- Application: Turbo Pascal (all versions through 4.0)
- }
-
-
- FUNCTION Exists( FName : Str80) : BOOLEAN;
-
- VAR
- f : FILE;
-
- BEGIN { Exists }
- ASSIGN(f, FName);
- {$I-}
- RESET(f);
- CLOSE(f);
- {$I+}
- Exists := IOResult = 0
- END; { Exists }