Dossy wrote:


> According to the documentation, you should be doing:
> 
>     File.new('foo', 'wb', 0600)
> 
> This is gotten from:
> 
>     http://www.rubycentral.com/book/ref_c_file.html#File.new
> 
>     File.new( fileName [, aModeNum [ aPermNum ] ] ) -> file 


That's what I did first.

$ ruby -e "File.new('foozer','wb',0600)"
$ stat foozer
   File: "foozer"
   Size: 0               Blocks: 0          Regular File
Device: 306h/774d       Inode: 374159      Links: 1
Access: (0644/-rw-r--r--)  Uid: (  501/    tobi)   Gid: (  501/    tobi)
Access: Sat Jun 15 20:11:15 2002
Modify: Sat Jun 15 20:11:15 2002
Change: Sat Jun 15 20:11:15 2002

Tobi

-- 
http://www.pinkjuice.com/