Python and writing a CSV file

engsol engsolnorm at ipns.com
Sun Jan 25 16:38:43 EST 2004


On Sun, 25 Jan 2004 14:29:41 -0600, Skip Montanaro <skip at pobox.com>
wrote:

>
>    Norm> writer = csv.writer(file('csv_test.CSV', 'w'))
>    ...
>    Norm> So the question is, where does the extra crlf in the csv file come
>    Norm> from? And how do I get rid of it?
>
>Try opening the CSV file in binary mode:
>
>    writer = csv.writer(file('csv_test.CSV', 'wb'))
>
>Skip

Thanks Skip....works like a charm!
Norm




More information about the Python-list mailing list