FileHandle:__len(FileHandle)

shared
Get the length of a file.

Argument

Returns

  • integer The length of the file or nil if the file handle is invalid.

Examples

FileHandle:__len – Get the length of a file.