YANAGAWA Kazuhisa wrote: > # Of course you can specify arbitrary mode allowed on your system. > # eg. File.new("/tmp/foo", File::CREAT|File::TRUNC|File::RDWR, 0600) Thanks. How to write the equivalent of File.new "foo", "wb", 0600 ? I mean, how to specify that it's a binary (image) file? Tobi -- http://www.pinkjuice.com/