Answers for "python iterate over line of gzip file"

0

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,
Posted by: Guest on February-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language