FileSizeEx

Description:

baFileSizeEx returns the size of a file.

Platforms:

Windows and Macintosh

Usage:

Result = baFileSizeEx( FileName )

Arguments:

String.
FileName is the file to get the size of.

Returns:

Float.
Returns the size of the file in bytes, or -1 if the file doesn't exist.

Examples:

Director:
size = baFileSize( "c:\data\student.dat" )

Authorware:
size := baFileSize( "c:\\data\\student.dat" )
 

Notes:

This function returns a float and can handle files larger than Director's MAXINTEGER - 2147483647 bytes.
 

See also:

baFileSize