From: "Mauricio Fernández" Date: 2004-02-19T04:56:36+09:00 Subject: Re: How to use Ruby's zlib? On Wed, Feb 18, 2004 at 11:47:33PM +0900, Moran, Craig M (BAH) wrote: > Thanks, Gavin. I'm onto something here. I found rubyzip, which will do > what I need it to. However, I'm having a bit of trouble tracking down how > to use it properly. Any ideas? (untested) require 'zip/zipfilesystem' filename = "test.zip" Zip::ZipFile.open(filename, Zip::ZipFile::CREATE) do |zip| zip.file.open("foo.txt", "w") {|f| f.write "file contents"} zip.file.open("bar.txt", "w") {|f| f.write "file contents 2"} end -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com How do I type "for i in *.dvi do xdvi $i done" in a GUI? -- Discussion in comp.os.linux.misc on the intuitiveness of interfaces