I tried gets.chomp instead of gets and it worked! Thanks. James ts wrote: > >>>>> "J" == James Calivar <amheiserbush / yahoo.com.au> writes: > > J> puts ("Please enter the name of the file you wish to process: ") > J> filename = gets > > filename = gets.chomp # to remove the newline which is at the end of the > # string > > J> puts ("File to be processed: " + filename) > > > > -- > > Guy Decoux