From: 7stud -- Date: 2012-09-15T13:18:05+09:00 Subject: Re: how to write a array into a string arr = ['a', 'b', 'c'] result_str = "" arr.each_with_index do |num, i| result_str << "#{i} => #{num}\n" end puts result_str #or add result_str to an email --output:-- 0 => a 1 => b 2 => c -- Posted via http://www.ruby-forum.com/.