Navigation:  Reference > Functions >

FileExists()

Print this Topic Previous pageReturn to chapter overviewNext page

 

FILE_EXISTS(1,2)

 

PURPOSE

This function searches for a specific file name.

 

PARTS

 

1 f/c/eRequired - The file to search for.  You must include a full path and extension.

 

2 f/c/eIf you want to check for the file in the file manager (WTASFMGR.DBF) then set this value to True.

 

RETURN TYPE - L

If the file is found this function returns .T., if not it returns .F.

 

COMMENTS

This is similar to FFILE() except that it only checks for a single file and returns .T. or .F. instead of the file name.  Also, this function will test for both a file on the disk and in the file manager.

 

EXAMPLE

define dummy_l type L

dummy_L = FILE_EXISTS('myfile.txt,.f.)

 

See Also

DIR_EXISTS()

 

 


Page url: http://www.cassoftware.com/tas/manual/fileexists().htm