From: "Sergio Díaz" Date: 2011-09-30T05:45:28+09:00 Subject: Re: IO.readlines will not accept variable with file name Why? 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/.