FSIZE

Macro Sheets Only

Returns the number of bytes in a file. Use FSIZE to determine the size of the file, which is the same as the position of the last byte in the file.

Syntax

FSIZE(file_num)

File_num is the unique ID number of the file whose size you want to know. File_num is returned by a previously executed FOPEN function. If file_num is not valid, FSIZE returns the #VALUE! error value.

Example

The following function returns the size in bytes of the open file identified as FileNumber:


FSIZE(FileNumber)

Related Functions

FOPEN Opens a file with the type of permission specified

FPOS Sets the position in a text file

List of DDE/External Functions