instiki/vendor/rubyzip-0.5.8/samples/write_simple.rb
2005-04-10 16:55:44 +00:00

14 lines
179 B
Ruby

#!/usr/bin/env ruby
$: << "../lib"
require 'zip/zip'
include Zip
ZipOutputStream.open('simple.zip') {
|zos|
ze = zos.put_next_entry 'entry.txt'
zos.puts "Hello world"
}