From: Tobias Reif Date: 2002-06-17T05:27:29+09:00 Subject: Re: File.new('foo', 0600 , 'wb') angus wrote: > What is the difference if you are on a Unix system? The code must be platform independent, so I need both the binary flag and the permissions flag. > 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... Tobi -- http://www.pinkjuice.com/