I want to add “.cvs” at the end of a name,and use the following
namelist.each do |name|
name = name +’.cvs’
but error message is :
+': can't convert String into Array (TypeError) from test2.rb:43 from test2.rb:39:ineach’
What’s wrong with it? how to fix it?