How to open and read zip files with Zlib?

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

regards,

Brian

···

On 27/07/05, Miles Keaton <mileskeaton@gmail.com> 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.

--
http://ruby.brian-schroeder.de/

Stringed instrument chords: http://chordlist.brian-schroeder.de/

http://rubyzip.sourceforge.net/
That did it. Thanks!