2009/3/6 Mmcolli00 Mom <mmc_collins / yahoo.com>: > Question: > Do you know how to add a string on the end of each value before > splitting into a new line? For instance... > > File.foreach "temp.txt" do |line| > puts "", line.split(/,/),"comments" + @usercomments > end > You could use Array#map method. -- junegunn.