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

13 lines
174 B
Ruby
Raw Normal View History

#!/usr/bin/env ruby
$: << ".."
require 'zip/zip'
include Zip
ZipOutputStream.open('simple.zip') {
|zos|
ze = zos.put_next_entry 'entry.txt'
zos.puts "Hello world"
2005-01-15 21:26:54 +01:00
}