This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
-
Dedan
- Master
- Posts: 260
- Joined: Wed Jul 09, 2003 10:50 pm
- Location: Memphis
Post
by Dedan »
Is there a global varabile that returns the number of lines in a file?
I once was an intelligent young man, now i am old and i can not remember who i was.
-
M
Meltdown
Post
by Meltdown »
nope afaik
but its quite easy:
set c 0; set f [open search.txt r] ; while {![eof $f]} {gets $f ; incr c} ; return $c