On Jul 2, 7:07 pm, Adonis Vargas <[EMAIL PROTECTED]> wrote: > [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 anASCIIfile transfer?????? > > -Ted > > Taken from online documentation: > > http://docs.python.org/lib/ftp-objects.html > > storlines(command, file) > > Store a file inASCIItransfer 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
Thank you it waqs soooo simple, works fine now!!!! -- http://mail.python.org/mailman/listinfo/python-list