On Tue, Nov 25, 2008 at 6:16 PM, Gilbert <[EMAIL PROTECTED]> wrote: > Hi People, > > I tried to look for some answers but I see only same data format > processing ( *.txt to *.txt ) in python. > my question is how to convert a text file ( e.g. *.log, *.dlg ) to excel > *.csv using python programming.
This kind of program can be pretty simple, depending on the format of your text file. It generally will have the form open input file open output file open csv writer for output file for each line in input: split the line into fields write the fields to the csv writer close input file close output file The real program may not be much longer than that. I really depends on what you need to do with the input lines. Can you show an example? Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor