Procedure FileGetSize(filename, fileSize)

FileGetSize

The procedure FileGetSize retrieves the size on disk of an existing file.

FileGetSize(
        filename,     ! (input) scalar string expression
        fileSize      ! (output) scalar numerical identifier
        )

Arguments

filename

A scalar string expression representing an existing file name.

fileSize

A scalar identifier to hold the size of the file, or -1 if the size could not be retrieved.

Return Value

The procedure returns 1 on success. If it failed to retrieve the file size, then it returns 0 and the pre-defined identifier CurrentErrorMessage will contain a proper error message.

See also

The procedure FileExists.