Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

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 drive are not explicity
      specified,FILE() will first search the current drive and directory,
      and will look for the file in the directories specified by SET PATH
      TO and SET DEFAULT TO commands.However, this command does not look
      at the values in the DOS PATH command.

 Examples

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

Status

      Ready

 Compliance

      This function is CA-Clipper compatible.

 Files

      Library is Rtl



See Also: SET PATH SET DEFAULT SET()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson