Converting the line endings in a file from DOS to UNIX format in C#
<p>I would like to convert the line endings in a file from DOS format to Unix format in C#.</p>

<p>Unix systems use the linefeed character (LF) as a line separator. The only notable exception is Microsoft Windows, which uses a carriage return followed by a linefeed (CRLF). </p>

<p>How do I change the line endings in a file from DOS to Unix Format using C#. Need some guidance on converting this.</p>