readlines() problem, more info
John Purser
NO_SPAM_jmpurser2 at attbi.com
Mon Apr 1 14:06:59 EST 2002
Hello,
I've got a little function:
def FindLine(Record):
im1_Dif.seek(0)
temp = im1_Dif.readlines(Record)
lngCount = 0L
for line in temp:
print str(lngCount), ' ', line
lngCount += 1
test = im1_Dif.readline()
print test
That I'm using to trouble shoot a small script. When I run this in the
interactive mode it returns 136 lines to "temp" no matter what number I pass
to it. Can anyone tell me why this is happening?
I'm using Python 2.2 on Windows 2000.
Thanks,
John Purser
More information about the Python-list
mailing list