On 2007-12-12, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I found this solution not working.
> outfile = StringIO.StringIO()
> outfile.write(some_string + '\n')

You need to rewind the file with outfile.seek(0) before
proceeding, or storlines will encounter an immediate EOF when it
attempts to read data.

> ftp.storlines(command, outfile)
 outfile.close()

-- 
Neil Cerutti
Henry VII found walking difficult because he had an abbess on his knee.
--History Exam Blooper
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to