FileSize

Description:

baFileSize returns the size of a file.

Platforms:

Windows and Macintosh

Usage:

Result = baFileSize( FileName )

Arguments:

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

Returns:

Integer.
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 will only return correctly on files smaller than Director's MAXINTEGER - 2147483647 bytes. Use baFileSizeEx to get file sizes larger than this.
 

See also:

baFileSizeEx