Message245772
I have a use case where I am using a csv.reader to loop through one file and trying to use a csv.writer to output to another file. However, when I do this, the csv.writer instance does not write anything to the output file.
ex:
import csv
with open("input.csv", "rb") as input, open("output.csv", "wb") as output:
reader = csv.reader(input)
writer = csv.writer(output)
for row in reader:
writer.writerow("data") # this writes out nothing
writer.writerow("more data") # this writes out something |
|
Date |
User |
Action |
Args |
2015-06-24 20:05:15 | ezzieyguywuf | set | recipients:
+ ezzieyguywuf |
2015-06-24 20:05:15 | ezzieyguywuf | set | messageid: <1435176315.93.0.429947665214.issue24503@psf.upfronthosting.co.za> |
2015-06-24 20:05:15 | ezzieyguywuf | link | issue24503 messages |
2015-06-24 20:05:15 | ezzieyguywuf | create | |
|