Hi just trying to get to grips with tcl.
I am having to use the Oracle version and it is difficult to understand what version I am using. (using the OMB extension set)
However, I am trying to open a file for reading by passing in the file name as a argument from the tcl script.
this all works OK
but when I try to open the file
set file_id [open $my_file_fqn w]
it fails I then tried to eval by
cmd [list "set file_id [open " $my_file_fqn w]]
eval $cmd
even when I separate it out it seems to put curley braces around the [
Any thoughts on this?
Is there a much easier way? Someone must have had to do this at sometime
many thanks
I am having to use the Oracle version and it is difficult to understand what version I am using. (using the OMB extension set)
However, I am trying to open a file for reading by passing in the file name as a argument from the tcl script.
this all works OK
but when I try to open the file
set file_id [open $my_file_fqn w]
it fails I then tried to eval by
cmd [list "set file_id [open " $my_file_fqn w]]
eval $cmd
even when I separate it out it seems to put curley braces around the [
Any thoughts on this?
Is there a much easier way? Someone must have had to do this at sometime
many thanks