I am using StreamWriter to write out a file that I'm reading in using File.ReadAllLines. This file is a little over 2MB in size and my issue is that when I go to look at the file that StreamWriter has created, it is not complete. I have stopped the code towards the end and parsed my way through and it is getting to the last lines (of the original file) and running normally through the code....ie. hitting the wr.Write(s.tostring());
Is there something I am missing that won't allow StreamWriter to complete the entire file? Do I need to increase the BufferSize when initializing the StreamWriter? Any help would be appreciated.
StreamWriter wr = new StreamWriter("C:\\Test.inx", true);
processed = true;
string AllContent = File.ReadAllLines(txtPrepressFile.Text);
foreach (string s in AllContent)
catch (Exception f)