hello
i am new to tcl/tk and am converting some VB programs as i learn tcl.
am trying to write (puts? dump?) the contents of a multiline text widget to a file.
i was using the puts command to write stuff line by line simultaneously to the text widget and the output file, but this makes a lot of duplicate code.
i tried simply:
puts $outfilename .textwidgetname.text
but that didn't work
i have two bokks here and neither one explains how to write the complete contents of a text widget to a file.
any help would be appreciated.
daveleo
i am new to tcl/tk and am converting some VB programs as i learn tcl.
am trying to write (puts? dump?) the contents of a multiline text widget to a file.
i was using the puts command to write stuff line by line simultaneously to the text widget and the output file, but this makes a lot of duplicate code.
i tried simply:
puts $outfilename .textwidgetname.text
but that didn't work
i have two bokks here and neither one explains how to write the complete contents of a text widget to a file.
any help would be appreciated.
daveleo