From: "Choi, Junegunn" Date: 2009-03-06T20:44:44+09:00 Subject: Re: add a string on the end of values before splitting new line 2009/3/6 Mmcolli00 Mom : > 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.