# FILE()

Tests for the existence of file(s)

Syntax

  FILE( <cFileSpec> ) --> lExists

Arguments

  <cFileSpec> Dos Skeleton or file name to find.

Returns

  <lExists> a logical true (.T.) if the file exists or logical false (.F.).

Description

  This function return a logical true (.T.) if the given filename <cFileSpec> exist.
  Dos skeletons symbols may be used in the filename in <cFileSpec>, as may the drive and/or path name. If a path is not explicity specified, FILE() will look for the file in the SET DEFAULT path, then in each SET PATH path, until the file is found or there are no more paths to search. The DOS PATH is never searched and the current drive/directory is only searched if SET DEFAULT is blank.

Examples

          ? file('c:\harbour\doc\compiler.txt")
          ? file('c:/harbour/doc/subcodes.txt")

Status

  S (wild card support is missing)

Compliance

  This function is CA-Clipper compatible.

Files

  Library is rtl

See Also

- SET DEFAULT
- SET PATH
- SET()