%fsize() function

The %fsize() function returns the size in bytes of the file associated to the opened file.descriptor returned by a previous call to %open() or %creat().

Syntax

size = %fsize(file.descriptor)

Description

If the file does not exist or is not readable, -1 is returned.