Quote:
request.UseBinary = true;
Binary mode transfers the file bytes verbatim. The source file was almost certainly created on a Linux or Mac system, which uses a different line-break character than Windows.
Set
UseBinary
to
false
if you're transferring text files. Or alternatively, read the files using a text editor which supports line-breaks from different platforms - eg:
Notepad++[
^].
FTP Binary and ASCII Transfer Types And The Case of Corrupt Files[
^]