managed to get this proc to work nicely
If anyone finds it of use.
It's a bit clunky and if anyone has a sleeker version let me know
proc dmic_file {file_fqn file_type} {
set cmd1 [subst {\[open $file_fqn $file_type\]}]
set cmd2 [concat set channel $cmd1]
eval $cmd2
global file_id
set file_id...
Thnks Bong
dynamic file creation
I am making progress
this works:
# escape the [] as the parser still tries to subst the
# internal commands
set cmd1 [subst {\[open $my_big_file w\]}]
# list puts curley braces around so I used concat
#...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.