File:getSize

Edit

Returns the size of the file, in bytes.

size, error = File:getSize()

Arguments

None

Returns

NameTypeDescription
sizenumber The size of the file, in bytes, or nil if an error occurred.
errorstring The error message, if an error occurred.

See also