File size: Difference between revisions

(→‎{{header|Perl 6}}: section added)
Line 298:
PRINT "File size: "; lof(#m)
CLOSE #m</lang>
=={{header|Lua}}==
<lang Lua>function GetFileSize( filename )
local fp = io.open( filename )
if fp == nil then
return nil
end
local filesize = fp:seek( "end" )
fp:close()
return filesize
end</lang>
 
=={{header|Mathematica}}==
Anonymous user