Possible Duplicate:
How to count lines fast?
I have some files that contains data line by line.
I want to get the line count in a file to show progress state to user. (I process these files in background reading line by line)
I can do this by reading the file completely, but these files are so big that my application unnecessarily consumes RAM space.
So I want to get line count in a file without reading the whole file.
How can I do this?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With