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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -