From: "Brian Schröder" Date: 2005-07-27T17:53:38+09:00 Subject: Re: how to open and read zip files with Zlib? On 27/07/05, Miles Keaton wrote: > I need to a ruby script to go through some zip files in the > filesystem, probably using zlib. > > Pickaxe shows a GzipReader, but not zip. Their Gzip example doesn't > translate to Zip from what I've tried. > > Anyone successfully using Ruby to open the contents of a zip file and > do something with it? > > If so, could you paste a code snippet here? Sorry I can't find any > good examples. > > Unlike a gzip file a zip file may contain many files. So you need a different interface to work with zip files. I have never used it, but maybe this library can help you http://sourceforge.net/projects/rubyzip regards, Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/