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...")
 
m (Moved to CAT:LuaCoreFunctions)
Line 12: Line 12:
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:Lua_Core_Functions]]

Revision as of 18:46, 28 November 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") )