From: w_a_x_man Date: 2010-10-24T06:23:34+09:00 Subject: Re: Non-Hard Coded File.open(newFile) On Oct 23, 8:35 am, Grant Curell wrote: > Like a lot of people I'm new to Ruby and I'm trying to do something I > thought would be pretty simple. I want the user to give me input in the > form of a filename and then subsequently open the file. Here is what I > have so far: > > class FileHandler > >   def initialize() >     @fileToParse = fileToParse #I get user input in the form of gets in Usually after gets you want to use strip to remove all leading and trailing whitespace: file_name = gets.strip