September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
12
Task/File-size/BaCon/file-size.bacon
Normal file
12
Task/File-size/BaCon/file-size.bacon
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
' file size
|
||||
' Return the entire message, FILELEN returns a NUMBER
|
||||
FUNCTION printlen$(STRING name$)
|
||||
IF FILEEXISTS(name$) THEN
|
||||
RETURN name$ & ": " & STR$(FILELEN(name$))
|
||||
ELSE
|
||||
RETURN "file " & name$ & " not found"
|
||||
END IF
|
||||
END FUNCTION
|
||||
|
||||
PRINT printlen$("input.txt")
|
||||
PRINT printlen$("/input.txt")
|
||||
Loading…
Add table
Add a link
Reference in a new issue