From: Tobias Reif Date: 2002-06-17T05:30:47+09:00 Subject: Re: File.new('foo', 0600 , 'wb') ts wrote: > T> I mean, how to specify that it's a binary (image) file? > > > flag |= File::BINARY if File::Constants.const_defined?("BINARY") > > with 1.7 > > flag |= File::BINARY if File::const_defined?("BINARY") Thx. With 1.7.2, is File.new "foo", "wb", 0600 OK? Tobi -- http://www.pinkjuice.com/