Re: [Tutor] FTP retrieve

2005-03-15 Thread Ewald Ertl
Hi! Looking up the ftplib-Module on my Solaris-Box >>> print sys.version 2.3.3 (#1, Mar 10 2004, 06:25:19) [GCC 3.3.2] I get the following doc for retrlines of the FTP-class: >>> print myFTP.retrlines.__doc__ Retrieve data in line mode. The argument is a RETR or LIST command.

Re: [Tutor] FTP retrieve

2005-03-15 Thread Kent Johnson
Øyvind wrote: I have opened an FTP connection, and use the following to download a logfile: f = open('c:///web.log','w') ftp.retrlines('RETR ex050202.log', f.write) I have also tried with f.writelines. It works, but not as well as I would like. All the \n's are removed. How can I download an exact

[Tutor] FTP retrieve

2005-03-15 Thread Øyvind
I have opened an FTP connection, and use the following to download a logfile: f = open('c:///web.log','w') ftp.retrlines('RETR ex050202.log', f.write) I have also tried with f.writelines. It works, but not as well as I would like. All the \n's are removed. How can I download an exact copy, so th