reading csv problem

ajikoe at gmail.com ajikoe at gmail.com
Wed Nov 15 01:07:57 EST 2006


Hello,

I use csv to take information from file.
import csv
reader = csv.reader(open('t.csv'))

for row in reader:
    print row # it is perfectly OK

---------------------------------------------------------------------
But If I use this code I have problem
import csv
reader = csv.reader(open('t.csv'))

for row in reader:
    print row # it is perfectly OK
for row in reader:
    print row # it is not printed on the monitor???

Why does only the first print row work here?

TIA,
ajikoe




More information about the Python-list mailing list