From: Mmcolli00 Mom Date: 2009-03-06T01:06:19+09:00 Subject: Re: add a new line after, w/txtfile thats comma delimited Do you know how to attach a string on the end of each value before splitting into a new line? For instance... value1 comments value2 comments value3 comments I tried this using Robert's code, however, it put the comments on a newline. File.foreach "temp.txt" do |line| puts "", line.split(/,/),"comments" + @usercomments end Thanks everyone for your help. MC -- Posted via http://www.ruby-forum.com/.