Yochen Gutmann wrote:
> Hi Ruby-folks,
> 
> I am currently working on a small program, which saves copies of website 
> locally to my harddisk. For normal html-pages this works as expected. 
> But now I am struggeling with binary files such as PDFs.
> 
>    targetFile = File.new("test.pdf,"w")

Use "wb" instead of "w". On windows, this treats the data as binary
instead of lines of text that should be terminated with cr-lf.

-- 
      vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407