From: James Calivar Date: 2006-09-07T23:30:17+09:00 Subject: Re: Basic problems with accessing a file I tried gets.chomp instead of gets and it worked! Thanks. James ts wrote: > >>>>> "J" == James Calivar 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