So I am trying to create a console app to parse text files. I am using a streamreader to read the text in until I reach end of file. The text file I am reading as 22945 lines. Right now I am just trying to read the entire file and write it to another file. The new file ends at line 22926. Does any body have any idea why? Is there a limit to how much data I can read through a streamreader? The code I am using is this:
while(!fs.EndOfStream)
{
line = fs.ReadLine();
fw.WriteLine(line);
}