The following file information functions are usually used instead of their equivalent methods in the File class:

Function

File class method

FACCESSDATE( )

accessDate( )

FCREATEDATE( )

createDate( )

FCREATETIME( )

createTime( )

FDATE( )

date( )

FILE( )

exists( )

FSHORTNAME( )

shortName( )

FSIZE( )

size( )

FTIME( )

time( )

These functions are not described separately (except for FILE( ), because its name is not based on the name of its equivalent method). The syntax of a file information function is identical to the syntax of the equivalent method, except that as a function, no reference to a File object is needed, which makes the function more convenient to use. For example, these two statements are equivalent

nSize = fsize( cFile ) // Get size of file named in variable cFile

nSize = new File( ).size( cFile ) // Get size of file named in variable cFile