No, you are wrong.
The above will not read all your file into memory.
In reply to Re^11: Reading zipped files (.gz) by Corion in thread Reading zipped files (.gz) by ravi45722