GetFilelength (open)

Get the size of a file (a file on disk or a blob)

Syntax

LOADLIB "wh::files.whlib";

INTEGER64 FUNCTION GetFilelength(INTEGER filehandle)

Parameters

INTEGER filehandle

ID of file, as returned by OpenBlobAsFile, OpenDiskFile or CreateDiskFile

Return value

INTEGER64

The size of the file in bytes

Description

Get the size of a file on disk. For blobs, you can also use LENGTH on the BLOB itself.