File input/output: Difference between revisions

awk
(→‎{{header|Ruby}}: ++ smalltalk)
(awk)
Line 101:
copyFile from ":input.txt" into ":output.txt"
 
=={{header|AWK}}==
 
(This does not handle properly binary files)
 
<lang awk>BEGIN {
while ( (getline <"input.txt") > 0 ) {
print >"output.txt"
}
}</lang>
 
=={{header|BASIC}}==