I've just make excises of gzip on python.
import gzip
f=gzip.open('Onlyfinnaly.log.gz','rb')
file_content=f.read()
print file_content
And I get no output on the screen. As a beginner of python, I'm wondering what should I do if I want to read the content of the file in the gzip file. Thank you.
print open('Onlyfinnaly.log.gz', 'rb').read().decode('zlib')
. If that doesn't work, can you confirm that the file contains something?