On 13 Aug 2004 01:23:34 +0200, Herfried K. Wagner [MVP] wrote:
> * (E-Mail Removed) (Peter) scripsit:
>> And for countling lines is there something better?
>
> Looping through the lines until the end of the file is reached and
> counting the lines read from the files is the best approach.
That depends on the structure of the file. If all the lines are the same
length, then you can take the filesize and divide by the line length.
But if the lines in the file are variable length, the what Herfried
suggested is probably the best way.
--
Chris
dunawayc[AT]sbcglobal_lunchmeat_[DOT]net
To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.