From: Carlos Date: 2002-06-17T05:31:00+09:00 Subject: Re: File.new('foo', 0600 , 'wb') > >In any case, if you need > >to open the file with "wb", you can set first File.umask, then open with > >File.new "foo", "wb", and then restore File.umask to the original value. > > > Hmm... Forget it. Use ts's solution.