Did you try with File#syswrite?

-- 
Posted via http://www.ruby-forum.com/.