FileGetSize

From Multi Theft Auto: Wiki
Revision as of 08:21, 16 January 2008 by ChrML (talk | contribs) (New page: __NOTOC__ {{Server function}} Returns the total size in bytes of the given file. ==Syntax== <syntaxhighlight lang="lua"> int fileGetSize ( file theFile ) </syntaxhighlight> ===Required Arguments=== *'''theFile:'''...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns the total size in bytes of the given file.

Syntax

int fileGetSize ( file theFile )

Required Arguments

  • theFile: the file handle you wish to get the size of.

Returns

Returns the file size if successful, or false if an error occured (e.g. an invalid file handle was passed).

Example

See Also