I use importing systems based on delimited text files. The files used can sometimes be almost 2 Gb big and I have to check some lines from that file. So I want to know how ca
In python:
readThisFile = open('YOURFILE') outputFile = open('OUTPUT', w) for actualline, linetext in enumerate(readThisFile): if actualline == WANTEDLINE outputFile.write(linetext) else: pass
If wanted you can modify that script to work with arguments (like getline.py 1234)