educative.io

No data read from gzip file

Hello,
I find it weird that in the last program which is supposed to read data form a gzip file (which doesn’t look like it’s empty) reader only gets an EOF and closes, without reading any actual content. Is this expected?


Course: https://www.educative.io/courses/the-way-to-go
Lesson: Reading from a File - The Way to Go

Hello Anisia,

Thank you for pointing this out. The gzip file was empty because of which the reader got an EOF without any actual content. But it has now been updated with a sample data which is being read and printed.

1 Like