Joda jenson wrote in post #1024263:
> What is the easiest why to get the "\n" off the end?

You can use chomp() like:

filename1 = gets.chomp

and it'll get rid of the \n for you.

-- 
Posted via http://www.ruby-forum.com/.