any faster alternative??
- by kaushik
I have to read a file from a particular line number and i know the line number say "n":
i have been thinking of two choice:
1)for i in range(n)
fname.readline()
k=readline()
print k
2)i=0
for line in fname:
dictionary[i]=line
i=i+1
but i want to know faster alternative as i might have to perform this on different files 20000 times.
is there is any other better alternatives??
thanking u