TCL - Extract line from text file to TCL Script
Well, i tried to find online my answer but actually I didn't and I really need help.. I have a text file (file.txt) that contain : C:/Users/00_file/toto.odb, dis,455, stre,54, stra,25, C:/Users/00_file/tota.odb, And a TCL script that allows me to read values of each lines : set Infile [open "C:/Users/00_file/file.txt" r] set filelines [split $Infile ","] set Namepath [lindex $filelines 1 0] #*doesn't work* set dis [lindex $filelines 2 0] # *work good* ... The problem is when I want the complete line 1 of the text file with my TCL script, some informations are missing and extra caracter disapea
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.