Right now my code reads as follows:

infile=file(FileName)
for line in reversed(infile.readlines()):  #Search from the bottom up
     if int(line.split()[0]) == MyDate:
           Data= float(line.split()[-1])
           break
infile.close()

I have to read about 10,000 files, each with data. I'm looking to speed
up each individual file open/close cycle.

Thomas Philips

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to