windows - How to start reading from x line in a text file with python -
I'm dealing with a large text file on my window machine, and I have a script that prints lines from text Fill to start from a given line index. F: [f] [f] for line: print line with open ('big_file.txt', 'r')
There is something like that in the above version that really works.
Use:
open ('big_file.txt', 'R') Import itertools as f: for line itertools.islice (f, 1000, none): print line
Comments
Post a Comment