I have files that may contain up to 40,000,000 lines of data (records) in text files.
I need a memory efficient way to count how many lines are in a file.
I have tried:
Dim this As Integer
this = File.ReadAllLines(txtInPath.Text).Length
MsgBox(this)
where txtInPath is a text box in my form.
This code causes out of memory exception.
Thanks