On Fri, Oct 8, 2010 at 3:34 PM, Susana Iraiis Delgado Rodriguez <susana.delgad...@utzmg.edu.mx> wrote: > for i in allfiles: > print i > a.write(i) > a.write("\n")
Are you sure you want to write bare data to a file ending in .xls? That might be confusing Excel, unless it has grown a sizable brain with respect to file handling. You might investigate the csv module that Python offers [1], and use it to write CSV. Excel can import that very easily. Hell, simply writing a list of filenames delimited by \n might be importable into Excel. [1]: http://docs.python.org/library/csv.html -- Jed Smith j...@jedsmith.org _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor