Copy all lines of a console app screen to text file
<p>I have a console application that does a lot of logging to screen via <code>Console.Writeline</code>.</p>

<p>Short of converting each <code>Console.Writeline</code> to a file write, or buffering each <code>console.Writeline</code> to a <code>StringBuilder</code>, </p>

<p>is there a way to take a full dump of the console screen lines to a text file when the application runs to the end?</p>