From: Carlos Date: 2002-06-17T05:59:57+09:00 Subject: Re: File.new('foo', 0600 , 'wb') Maybe adding File::WRONLY as well ;) > flag = File::CREAT|File::WRONLY # modified line, sorry ;) > flag |= File::BINARY if File::Constants.const_defined?("BINARY") > File.new "foo", flag, 0600