I'm running Windows 8. I have a file named "test.tcl".
- If I open a shell, type "wish", then 2 windows open. In one of them, I can type Tcl code and open the file test.tcl. If I open this file, its code is executed.
- If I double click on test.tcl to open the file with "Wish Application", then 1 blank window open, and nothing happens.
Do you know why please?
stdout(the default output channel forputs). Try putting something to create a text file likeset f [open "output.txt" w]; close $fand you'll see a file appear, meaning the code executed. You could open the file at the start, then put everything into that file by usingputs $f abefore closing it. You'll see the output in that file. - Jerry