Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
13
Task/File-size/Lingo/file-size.lingo
Normal file
13
Task/File-size/Lingo/file-size.lingo
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
----------------------------------------
|
||||
-- Returns file size
|
||||
-- @param {string} filename
|
||||
-- @return {integer}
|
||||
----------------------------------------
|
||||
on getFileSize (filename)
|
||||
fp = xtra("fileIO").new()
|
||||
fp.openFile(filename, 1)
|
||||
if fp.status() then return 0
|
||||
len = fp.getLength()
|
||||
fp.closeFile()
|
||||
return len
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue