I would like to convert the line endings in a file from DOS format to Unix format in C#.
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).
How do I change the line endings in a file from DOS to Unix Format using C#. Need some guidance on converting this.