Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>isfile() - check if a file exists</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     isfile() - check if a file exists
  Usage:    <logical> = isfile(<filename>)
  Params:   string <filename> - file to check for
  Returns:  Logical .T. if file exists, .F. if not

 ---------------------------------- Example ---------------------------------

                 if not isfile("employee.dbf")
                      @ 0,0 say "Can't find file..."
                 endif

                 if isfile("*.prg")
                      prgfiles = filecount("*.prg")
                 endif

  Note:     Unlike Clipper's file() function, isfile() does not
            check files down Clipper's PATH setting and you
            can specify wild cards.


See Also: ishandle() filesize() ferror()

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