in reply to Converting text file to CSV format

the straight forward solution... you can open the old file using open() and read each line using a while loop. assuming you know what order the old data is in, you will probably want to use split() to parse each line. you can open another file for output or pipe the output to a file when you run the script. either way, simply print the parsed data seperated by commas. that should do it.