Is there another way (faster way) to count the number of lines in a file instead of doing it this way:
VB Code:
  1. Open filename for Input As #1
  2.   Do While Not Eof(1)
  3.     Line Input #1, tmp
  4.     c = c + 1
  5.   Loop
  6. close #1
  7. Open filename for Input As #1
  8.   'do stuff
  9. close #1