in reply to New line problem

You seem to be FTPing non-binary data, yet you're setting your FTP handler to 'binary()' mode. Then you're sending the file somewhere that presumably uses different styles of line endings from your system. Linux, Windows, and Mac have different line endings, which is handled by FTP automatically if you use text mode, but not if you use binary mode.


Dave