Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
3
Task/File-size/Retro/file-size-1.retro
Normal file
3
Task/File-size/Retro/file-size-1.retro
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
with files'
|
||||
"input.txt" :R open &size sip close drop putn
|
||||
"/input.txt" :R open &size sip close drop putn
|
||||
2
Task/File-size/Retro/file-size-2.retro
Normal file
2
Task/File-size/Retro/file-size-2.retro
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
with files'
|
||||
"input.txt" :R open over 0 <> [ &size sip close drop ] ifTrue
|
||||
8
Task/File-size/Retro/file-size-3.retro
Normal file
8
Task/File-size/Retro/file-size-3.retro
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
with files'
|
||||
: getFileSize ( $-n )
|
||||
:R open 0 over =
|
||||
[ "File does Not Exist\n" puts ]
|
||||
[ &size sip close drop ] if ;
|
||||
|
||||
"input.txt" getFileSize putn
|
||||
"/input.txt" getFileSize putn
|
||||
Loading…
Add table
Add a link
Reference in a new issue