fs.getSize
From ComputerCraft Wiki
Revision as of 15:41, 9 July 2012 by Samrg472 (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=fs.getSize |args=string path |returns=bytes |api=fs |desc=Gets the size of a file |examples= {{Example |desc=Get the size of t...")
Function fs.getSize | |
Gets the size of a file | |
Syntax | fs.getSize(string path) |
Returns | bytes |
Part of | ComputerCraft |
API | fs |
Examples
Example | |
Get the size of the shell from the ROM and print it | |
Code |
print( fs.getSize("/rom/programs/shell") ) |