From: Kevin Olbrich Date: 2006-01-06T01:20:48+09:00 Subject: Re: how remove puts inside method? You could just mash the output into one long string... output = "" ... output << line_of_file..... ... return output Then return the string at the end of the function. You may need to tack on some linefeeds at the end of each line. -- Posted via http://www.ruby-forum.com/.