From: wimxa@... Date: 2007-10-10T03:00:18+09:00 Subject: Ruby binary temp file require 'tempfile' f = Tempfile.open 'tmp' will open f in text mode (mode = 'w', not 'wb'). Any non-hacky way to open this in binary mode? I can, of course, make f, close it and open it as a real file - it's just this is not atomic.