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
7
Task/File-input-output/Oforth/file-input-output-1.oforth
Normal file
7
Task/File-input-output/Oforth/file-input-output-1.oforth
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
: fcopy(in, out)
|
||||
| f g |
|
||||
File newMode(in, File.BINARY) dup open(File.READ) ->f
|
||||
File newMode(out, File.BINARY) dup open(File.WRITE) ->g
|
||||
|
||||
while(f >> dup notNull) [ g addChar ] drop
|
||||
f close g close ;
|
||||
1
Task/File-input-output/Oforth/file-input-output-2.oforth
Normal file
1
Task/File-input-output/Oforth/file-input-output-2.oforth
Normal file
|
|
@ -0,0 +1 @@
|
|||
fcopy("input.txt", "output.txt")
|
||||
Loading…
Add table
Add a link
Reference in a new issue