Displaying 3 results from an estimated 3 matches for "gzipwriter".
2006 Mar 16
0
ZLIB::GzipWriter - Strange file encoding?
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...
------...
2006 Mar 16
6
File Auditing with rails - File I/O issue
...<< [File.dirname(f), File.basename(f), File.mtime(f).to_s]
? ? ? end
end
# TEST: View the tempfile to make sure it has data.
# ?This prints nothing, but the file DOES have info after
# the script completes. ?Maybe the file isn''t written at this point?
p IO.read(tempfile)
Zlib::GzipWriter.open(outfile) do |gz|
? gz << File.open(tempfile).read
end
Zlib::GzipReader.open(outfile) {|gz|
? print gz.read
}
# The ZIP file can''t be extracted with WINZIP. ?No idea why, but since
# I''ll be using another RUBY script for extraction, im not sure that I
care.
--...
2006 Mar 17
7
OT: Subversion folder cleanup
How do you clean up your app folder to place onto the server? I want to
get rid of all the .svn stuff.
Seth Buntin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/cc81d9f7/attachment.html