At this moment I have this code which give me all the lines printed out set in [open "filename.dat" r] set line [split [read $in] \n] close $in puts [lindex $line] so after the close command I have to search with the index I guess How can I do this ? On the internet isn't much information ...