Re: Simple csv read/write

2007-04-26 Thread Drew
On Apr 24, 8:35 pm, John Machin [EMAIL PROTECTED] wrote: On 25/04/2007 8:27 AM, Drew wrote: Ok, I'm trying to do the simplest read/write from one csv file to another. For some reason, every other row on the output file is a blank row. What am I doing wrong? import csv reader =

Simple csv read/write

2007-04-24 Thread Drew
Ok, I'm trying to do the simplest read/write from one csv file to another. For some reason, every other row on the output file is a blank row. What am I doing wrong? import csv reader = csv.reader(open('current.csv')) writer = csv.writer(open('new.csv','w')) for line in reader:

Re: Simple csv read/write

2007-04-24 Thread John Machin
On 25/04/2007 8:27 AM, Drew wrote: Ok, I'm trying to do the simplest read/write from one csv file to another. For some reason, every other row on the output file is a blank row. What am I doing wrong? import csv reader = csv.reader(open('current.csv')) writer =