Copyright ® (1999-2005) EDMGROUP Pty Ltd - EZY Prolog Reference

 existfile

[This is preliminary specification and subject to change.]

Group

Prolog predicates  (more...)

Type

determ

Syntax

existfile( STRING FILE)

Flow patterns

(i)

 

Description:

Check whether a file exists

Sample:

The existfile finds all normal, hidden or  system files (but not subdirectories) and  succeeds if the file OSFileName exists. However, the existence of a file does not guarantee that it may be opened - it may be locked by another process. OSFileName may contain wildcards.

Copyright © 1997-2005 EDMGROUP (Australia)