From: Aegorov Egorov Date: 2010-12-23T07:18:58+09:00 Subject: Re: write byte array to file i'm get error undefined method `chr' for "255":String (NoMethodError) with this code File.open( filename, 'wb' ) do |output| new_array.each do | byte | output.print byte.chr end end -- Posted via http://www.ruby-forum.com/.