I have this problem on my script. The following is an sample of my code:
set config " config info"
set config2 " Config 2 info"
set out [open "$config.txt" a]
puts $out "$config"
.txt insert end "$config"
close $out
set out1 [open "$config1.txt" a]
puts $out1 "$config1"
.txt insert end "$config1"
close $out1
I want the script to create two file, but intead is creating one file with the name of "config", but what is write on the file is from "config1". What I'm doing wron and how can I fix it. Thanks
set config " config info"
set config2 " Config 2 info"
set out [open "$config.txt" a]
puts $out "$config"
.txt insert end "$config"
close $out
set out1 [open "$config1.txt" a]
puts $out1 "$config1"
.txt insert end "$config1"
close $out1
I want the script to create two file, but intead is creating one file with the name of "config", but what is write on the file is from "config1". What I'm doing wron and how can I fix it. Thanks