RosettaCodeData/Task/File-input-output/Tcl/file-input-output-1.tcl

7 lines
191 B
Tcl
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
set in [open "input.txt" r]
set out [open "output.txt" w]
# Obviously, arbitrary transformations could be added to the data at this point
puts -nonewline $out [read $in]
close $in
close $out