Sorry if this belongs elsewhere but I was sure someone here would know.

I was under the impression that when using SFTP to transfer files they 
were automatically treated as Binary files.  So if the remote file uses
CRLF to terminate lines, the downloaded file would have CRLF terminating
it's lines.  So I have a vendor that has replaced his FTP with SSH/SFTP.
my code is written to expect CRLF because that is the way the files
were when using the old FTP system to download.  Now, when I use SFTP
the files just have the LF.  The vendors answer is that we need to use
ASCII mode to transfer the files to get the CRLF.  I didn't know that 
there WAS an ASCII mode in SFTP let alone that using ASCII as opposed to 
Binary would change the line terminators.  The files in question are
technically ASCII text files but shouldn't I be getting an EXACT copy of
the file when I use Binary mode (assuming that I am right and that is
indeed the default with SFTP)?

What I really need is an explanation or a pointer to where I can get an
explanation so that I really know what I am talking about when I talk
to this vendor (and KNOW that I know what I am talking about).

Stuart van Zee
[EMAIL PROTECTED]

Reply via email to