Re: Quick Python Guidance
You can read the data into a list and then access any record you want forwards or backwards.
Code:
##fp = open(filename, 'r')
##data = fp.readlines() ## data = list of individual records
##fp.close()
## simulate file read
data = []
for j in range( 0, 10 ) :
data.append( "test " + str(j) )
print data[-1]
print data[0]
print data[-5]
print data[5]
Linux Counter entry # 99383 (since 1995), Feisty Xbuntu 64 bit
Folders! We don't need no stinking folders. "I don't have anything on my machine that needs folding" -- Unknown
Bookmarks