[EMAIL PROTECTED] wrote: > Hi, > > My program has the following code to transfer a binary file > > f = open(pathanme+filename,'rb') > print "start transfer" > self.fthHandle.storbinary('STOR '+filename, f) > > How can I do an ASCII file transfer?????? > -Ted >
Taken from online documentation: http://docs.python.org/lib/ftp-objects.html storlines(command, file) Store a file in ASCII transfer mode. command should be an appropriate "STOR" command (see storbinary()). Lines are read until EOF from the open file object file using its readline() method to provide the data to be stored. Hope this helps. Adonis -- http://mail.python.org/mailman/listinfo/python-list