string line;
// Read the file and display it line by line.
using (StreamReader file = new StreamReader(@"D:\$R3D4NK0.log"))
{
var lineCount = 0;
while ((line = file.ReadLine()) != null && lineCount < 25)
{
Console.WriteLine(line);
lineCount++;
// do your processing on each line here
}
}
Last active
September 20, 2016 16:08
-
-
Save JamesSkemp/653e7df54488f6c4d16eea781b83cca9 to your computer and use it in GitHub Desktop.
Read a large file (via LINQPad)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment