I want to read textfiles as large as 100000 lines and I want it go as fast as possible.
I have tried using StreamReader.ReadLine and that works fine for textfiles with 20000 lines which takes approx. 3-4 sec.
When I use the same code on a textfile with 40000 lines it doesnt take 6-8 sec but 20-25 sec.
Why isnt the time proportional to the number of lines and is there any other faster way to read files?
I have tried using StreamReader.ReadLine and that works fine for textfiles with 20000 lines which takes approx. 3-4 sec.
When I use the same code on a textfile with 40000 lines it doesnt take 6-8 sec but 20-25 sec.
Why isnt the time proportional to the number of lines and is there any other faster way to read files?