From: Matthias Reitinger Date: 2009-03-09T20:11:56+09:00 Subject: Re: Setting the contents of a file to a variable? badboy wrote: > Matthias Reitinger schrieb: >> Or even this: >> > did you read my post? why should we use a construct with a block if > there are several methods to do this directly? If you just want the first line of a file (and that's what I was specifically refering to) then reading in the whole file might not be the best idea. -Matthias -- Posted via http://www.ruby-forum.com/.