How can I find out the # of lines in a text file?
Printable View
How can I find out the # of lines in a text file?
try this.
Dim YourFile as String, LineCount as Long
Open YourFile for Input as #1
Do while not eof
Input Line #1,c
LineCount=LineCount+1
loop
Close #1
Good luck.
I knew of this method. I was hoping that there was a function that will do this. (built in).
Thanks,