push data to string
require 'stringio' s = StringIO.new s << "A string" s.read s << ", and more." s.rewind s.read # => "A string, and more."