Difference between revisions of "Fs.getSize"

From ComputerCraft Wiki
Jump to: navigation, search
(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...")
(No difference)

Revision as of 15:41, 9 July 2012


Grid Redstone.png  Function fs.getSize
Gets the size of a file
Syntax fs.getSize(string path)
Returns bytes
Part of ComputerCraft
API fs

Examples

Grid paper.png  Example
Get the size of the shell from the ROM and print it
Code
print( fs.getSize("/rom/programs/shell") )