File.Size
From GMod Wiki
Revision as of 11:15, 15 October 2011 by TheFreeman193 (Talk | contribs)
Function | |
Syntax |
File.Size( String filename, [ Boolean usebasefolder ] ) Where is this used? |
Description: | |
Outputs filesize of file. | |
Returns: | Integer |
Part of Library: | File |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=File.Size]File.Size [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Returns filesize of test.txt |
---|---|
Used on | |
Code | print(file.Size("test.txt")) |
Output | File size of test.txt in bytes. |
Additional Notes
- Relative to garrysmod/data
- If usebasefolder is true then it starts relative to the GMod base folder (garrysmod/garrysmod).