Last active
August 29, 2015 14:06
-
-
Save etaf/882251a1cf98c6c2a5e2 to your computer and use it in GitHub Desktop.
[ Tcl ] read file by line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set fp [open $some_file] | |
while {-1 != [gets $fp line]} { | |
puts "The current line is '$line'." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment