From: gwtmp01@... Date: 2006-04-05T07:29:30+09:00 Subject: Re: Using File.open block to manage svnadmin dump stream On Apr 4, 2006, at 6:13 PM, Brad C. wrote: > Well, I tried this to no avail (I assume this is using a binary mode > file): > > File.open("c:/testrb.txt","w") do |f| > f.binmode # I'm not really sure if this puts f in binary mode or > not. > f << "Test" > end I should have posted an example. Your code is opening the file in text mode. You have to add a 'b' to the mode argument of open to force the file to be opened in binary mode: File.open("c:/testrb.txt","wb") do |f| # write data here via the File object f end Gary Wright