Hi,
just follow it with a comand which prints nothing like
set temp_var [read $file] ; puts ""
or maybe even
set temp_var [read $file] ; puts [string range $temp_var 80]
which shows you the first 80 characters from the file you just read.
HTH
Helmut Giese
When I'm in a similar situation I sometimes do something like this:
% string length [set temp_var [read $file]]
You could also define your own silent set command:
proc sset {varname value} {
uplevel [list set $varname $value]
return ""
}
--
Bryan Oakley
http://www.tclscripting.com
The last result is always shown in the console when using it
interactively. The trick is therefore to not make that read the last
result. You could use:
set temp_var [read $file] ; puts ok
This will show ok and not the contents of the tempvar.
Mark
>When I'm in a similar situation I sometimes do something like this:
>
>% string length [set temp_var [read $file]]
Hey, that's cute - could convey some useful information.
For someone wandering by, this behavior only occurs when one is
interactively working with tcl. Executing the commands within a file
do not have this behavior.