Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python iterate over line of gzip file

import gzip
import io

with io.TextIOWrapper(io.BufferedReader(gzip.open(filename))) as file:
    for line in file:
        print line,
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #iterate #line #gzip #file
ADD COMMENT
Topic
Name
1+5 =