Archive: Quickest way to find out line count in txt file?


Quickest way to find out line count in txt file?
Does anyone know how to find out the quickest way of returning the amount of lines there are in a text file?

Tried using fileread and looping until EOF is found using a count but takes 2 long.

Any ideas?


I don't know of any better way of counting the lines besides going over the entire file looking for line breaks... Maybe if you implment it with pure C (extension DLL) it will be faster.