From: "F. Senault" Date: 2008-08-22T02:36:21+09:00 Subject: Re: Lower verbosity in IRB? Le 21 ao�t 2008 � 19:07, James Coglan a �crit : > [Note: parts of this message were removed to make it a legal post.] >> logfile=File.open("backup_08192008.log"){|f| f.read()} >> >> Normally, its fine that irb will barf out the contents of the file to >> screen. Normally it's even useful.... > You need to get the statement to evaluate to something short, preferably > nil. irb prints the last statement, in fact. Just adding ; nil at the end works. logfile=File.open("backup_08192008.log"){|f| f.read()} ; nil (BTW, for the original poster, to slurp a whole file, var = File.read("...") works too.) Fred -- You're only as young as the last time you changed your mind. (Timothy Leary)