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

7 lines
165 B
Tcl

#open file for writing
set myfile [open "README.TXT" w]
#write something to the file
puts $myfile "This is line 1, so hello world...."
#close the file
close $myfile