On Tue, 22 Nov 2011, Ethan Furman wrote:

reader = csv.reader(open("test.txt","r"),
                   delimiter="|",
                   quotechar="'")
output = csv.writer(open("out.txt","w"),
                   delimiter="|",
                   quotechar="'")

Ethan,

  How are these opened files closed? csv.reader() and csv.writer() have no
close method.

Rich
_______________________________________________
Portland mailing list
[email protected]
http://mail.python.org/mailman/listinfo/portland

Reply via email to