From: Gavin Kistner Date: 2011-09-07T11:44:34+09:00 Subject: Re: read .gz file directly --Boundary_(ID_V/iMN3Vx8fr8GEttU5s6RA) Content-type: text/plain; CHARSET=US-ASCII Content-transfer-encoding: 7BIT On Sep 6, 2011, at 8:32 PM, CC Chen wrote: > Robert Klemme wrote in post #1020184: >> On Mon, Sep 5, 2011 at 10:45 AM, CC Chen wrote: >>> How to read the xxx.gz file directly and don't decompress the file. >> >> http://www.ruby-doc.org/stdlib/libdoc/zlib/rdoc/classes/Zlib/GzipReader.html > > Which kind gem should I install first?? The Standard Library is libraries that are all included with a Ruby distribution, but (unlike Core) are not included in the runtime by default. The only thing you need to do is: require 'zlib' --Boundary_(ID_V/iMN3Vx8fr8GEttU5s6RA)--