A set of .NET Framework managed libraries for developing graphical user interfaces.
If the file is large, you cannot load it to memory, but often you can process it line-by-line.
For example, the next code counts the number of lines:
long count = 0;
foreach( string line in File.ReadLines( @"...path...", Encoding.ASCII ) )
{
// TODO: process 'line' variable
// . . .
++count;
}
Console.WriteLine( "Total lines: {0:#,##0}", count );
It only keeps the last line. Depending on your problem, you can also load and process a series of lines.