From: Brian Candler Date: 2010-08-18T00:10:15+09:00 Subject: Re: Making File.open work on gzipped files > This works nicely, but I would like it to work on gzipped files too. Ruby's Zlib library should do that nicely for you. But if you want to do it using the external gzip program, then ios = IO.popen("gzip -dc '#{filename}'") should be all you need - plus a bit of checking that filename doesn't include single quote. -- Posted via http://www.ruby-forum.com/.