Uploaded files are one long line
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
When I write a text file to my hard disk, I add \n to each line and, when viewed in an editor, the file displays as one would expect. But when I upload this file to my host, the text is displayed in one long line. I've found that if I add \r\n instead of just \n at the end of each line, the effect is reversed - my hard disk file is one long line and the remote file is displayed on separate lines. I've tried using both binary and ascii upload modes. I'm currently creating two files with the only difference being the \r in one of them to get around this. Does anyone know of a better solution. Jack