W
wimxa
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.
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.