instiki/vendor/rubyzip-0.5.8/samples/write_simple.rb

14 lines
179 B
Ruby
Raw Normal View History

#!/usr/bin/env ruby
2005-04-10 18:55:44 +02:00
$: << "../lib"
require 'zip/zip'
include Zip
ZipOutputStream.open('simple.zip') {
|zos|
ze = zos.put_next_entry 'entry.txt'
zos.puts "Hello world"
2005-04-10 18:55:44 +02:00
}