SyntaxFix
Write A Post
Hire A Developer
Questions
python: read lines from compressed text files
Using gzip.GzipFile:
gzip.GzipFile
import gzip with gzip.open('input.gz','r') as fin: for line in fin: print('got line', line)