Forum: Ruby on Rails ZLIB::GzipWriter - Strange file encoding?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9fc9f31415f9384fbe7262fa916e16f5?d=identicon&s=25 Brian Corrigan (Guest)
on 2006-03-16 22:00
(Received via mailing list)
Hey Folks,

I have this code:

Zlib::GzipWriter.open("file.gz") do |gz|
  gz.write(File.read("file.csv"))
end

Unfortunately this file doesn't want to open correctly in UltimateZip.
It shows a file inside, but doesn't allow you to extract it.

Am I missing something here?  Seems pretty cut and dry...

---------------------------
Brian Corrigan
---------------------------
This topic is locked and can not be replied to.