Hello all.
In VB, there are way to read entire lines of text in flat files.
I need to count the number of lines in a text file.
I've successfully done that using the FOPEN, FREAD and then testing for line feeds. Problem is, this procedure is quite slow, since it has to read every single character in the file and then test that character.
Is there a way to just quickly determine how many lines of text are in a file?
Thank you.
-Mike
In VB, there are way to read entire lines of text in flat files.
I need to count the number of lines in a text file.
I've successfully done that using the FOPEN, FREAD and then testing for line feeds. Problem is, this procedure is quite slow, since it has to read every single character in the file and then test that character.
Is there a way to just quickly determine how many lines of text are in a file?
Thank you.
-Mike