Xojo.IO.FolderItem.Length

From Xojo Documentation

Read-Only Property (As UInt64 )
UInt64Value = aXojo.IO.FolderItem.Length

Supported for all project types and targets.

The size of the file in bytes. For folders, the size is 0.

Sample Code

Gets the length of a file:

Var f As FolderItem = SpecialFolder.Documents("MyFile.txt")
If f.Exists Then
Var length As UInt64 = f.Length
End If