I figured out the reason of error. But now I have one more task, now I need to add two text files together and write the output to a new file. I have to add the column4 of file1 to column4 of file2 put the output(all the columns) in a new file.
For example:
file1:
0 0 200 200 -45.21225200000001...
Hi Bong, Thanks for the reply. When I try your code it gives an error of "invalid command name expr{70-23.119}" and generates an empty file. Do you know why I must be getting this error when I try to execute the "set lst_clmns [lreplace $lst_clmns 4 4 [expr{70-[lindex $lst_clmns 4]" command
Hi All,
I am new to tcl/tk programming and need some help on reading and manipulating particular columns in text files. What I need to do is read a text file which has 5 columns of number and add or subtract a user defined number from the last column's value. For example the text file is...
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.