mardi 30 juin 2015

how to read a large file line by line using tcl?

i written one code by using while loop but it will take much time to read the file line by line,can any one help me please. my code :

set a [open myfile r]
while {[gets $a line]>=0} {
"do somethig by using the line variable" }

Aucun commentaire:

Enregistrer un commentaire