On 17/03/2011 11:56, Dipo Elegbede wrote:
i wrote a code for extracting information from a csv file into another
csv file.
it worked well but i have an immediate challenge i can't seem to fix.
the new file that is created has an row and then an empty row and then a
row all through the file. how can i make the empty rows not be part of
the file.

Open the file in binary mode:

fh = open('stateparty2.csv','wb')

TJG
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to