+3 votes
in Programming Languages by (56.8k points)
I have a very large zipped file and I want to read it without unzipping. Can I use some library in Python to read a zipped file?

1 Answer

+2 votes
by (349k points)
selected by
 
Best answer

I think you can use gzip library to read a zipped file in python.

Try the following code:

import gzip
with gzip.open(wv.inpfile, 'rb') as fin:
        for line in fin:
   #you record should be in line

Related questions


...