File input/output: Difference between revisions
Content added Content deleted
(→{{header|Ruby}}: ++ smalltalk) |
(awk) |
||
Line 101: | Line 101: | ||
copyFile from ":input.txt" into ":output.txt" |
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}}== |
=={{header|BASIC}}== |