Link to home
Start Free TrialLog in
Avatar of runbird
runbird

asked on

How to open a huge text file and count the lines?

I am using ASP.NET in VB.
I have some huge text file which the size is normally 950MB to 1GB. I need to do the counting of lines for my text file. And this huge file is located at my local computer.
May I know is there any solution that I can do the count of lines for my text file?
Avatar of dshroutait
dshroutait

You could use Notepad++
have you tried to open it with Visual Studio?
or you can use some kind of line counter, you don't have to load the file into memory:
 http://www.codeproject.com/KB/files/SourceCodeLineCounter.aspx
ASKER CERTIFIED SOLUTION
Avatar of martin_kongen
martin_kongen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial