Wednesday, February 15, 2012

Python code that find the wrong data in huge data file

following code go though big data file find the line that data startwith letter "T"

fa = open ('a.bbb','r')
i = 0
for line in fa:
i= i + 1
if line.startswith('T'):
print i;
fa.close()

No comments:

Post a Comment