On Feb 08 2008, at 11:11, Stefan Frank wrote:
Man muss das Ganze also unzippen, suchen&ersetzen und dann wieder
zippen
gem install rubyzip
require 'zip/zipfilesystem'
Zip::ZipFile.open("bla.odt") do |z|
x = z.file.read("content.xml")
x.gsub!(/bla/, "blub") # na ja...
z.file.open("content.xml", "w") { |f| f.write x }
end
(Sorry fuer Fehler, nicht getestet)
Gruesse, Carsten
_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug