ken a écrit : > This file has 1,000,000+ lines in it, yet when I print the counter 'cin' > at EOF I get around 10,000 less lines. Any ideas?
Not without seeing the file. But I'm not sure I want to see it !-) > lineIn = > csv.reader(file("rits_feed\\rits_feed_US.csv",'rb'),delimiter='|') > for emp in lineIn: > cin=cin+1 > print cin Note that manually tracking line count/number is way too boring. That's why Python as enumerate(seq) => indice, item -- http://mail.python.org/mailman/listinfo/python-list