Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick way to find number of lines in 16GB file
Message
From
03/06/2020 03:38:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/06/2020 18:01:58
General information
Forum:
Windows
Category:
Computing in general
Miscellaneous
Thread ID:
01674670
Message ID:
01674686
Views:
53
>Open with VFP using low-level functions FOPEN() and FREAD(). Then count the number of lines in a loop. Don't use buffering. FREAD will read upto each CR+LF.

I'd read the file in some sizable chunks - perhaps 64K at a time - and keep counting the CRs in it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform