[Tutor] What is the best way to count the number of lines in a huge file?
dman
dsh8290@rit.edu
Thu, 6 Sep 2001 18:15:14 -0400
On Thu, Sep 06, 2001 at 05:39:44PM -0400, Ignacio Vazquez-Abrams wrote:
| On Thu, 6 Sep 2001, dman wrote:
| > Heh. I didn't even know windows had a 256k boundary. I always though
|
| ?
|
| I meant the parameter passed to file.read() in my code (262144B=256KiB).
Oh, right. Searching for a sequence of characters in an stream of
bytes is problematic unless you have some sort of structure within
which to work (IOW that boundary thing).
-D