From: Mmcolli00 Mom Date: 2009-03-06T04:44:40+09:00 Subject: Re: add a new line after, w/txtfile thats comma delimited Robert I used the variant gsub and it only puts a comment behind one value and not all of them. Thanks for helping. MC File.foreach "temp.txt" do |line| newLine = "\n%s\n", line.gsub(/,/, "comment" + usercomment+ "\n") puts newLine end -- Posted via http://www.ruby-forum.com/.