From: Robert Klemme Date: 2010-08-18T23:05:47+09:00 Subject: Re: Making File.open work on gzipped files 2010/8/18 Brian Candler : > Martin Hansen wrote: >> Thanks Brian and Robert. The below snippet appears to be working nicely >> - though I am not sure that the file is closed if zipped? > > Good question, but the documentation for GzipReader#close gives you the > answer: > > "Closes the GzipFile object. This method calls close method of the > associated IO object. Returns the associated IO object." That's why I suggested my item 1. :-) Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/