File.Size

From GMod Wiki

Jump to: navigation, search
Function
Syntax File.Size( String filename, [ Boolean usebasefolder ] )
Where is this used?
Description:
Outputs filesize of file.
Returns: Integer
Part of Library: File
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=File.Size]File.Size [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionReturns filesize of test.txt
Used onNewerShared.png
Code
print(file.Size("test.txt"))
OutputFile size of test.txt in bytes.

Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox