instiki/vendor/plugins/rubyzip/samples/write_simple.rb

14 lines
192 B
Ruby
Raw Normal View History

2007-01-22 14:43:50 +01:00
#!/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"
}