From: Jonathan Denni Date: 2006-09-30T02:09:51+09:00 Subject: Re: Files? Wilson Bilkovich wrote: > The section betewen the 'do' and the 'end' is called a block. In this > case, Ruby will automatically make sure the file is closed for you > when leaving the block. Convenient, because it saves you a whole bunch > of error checking. > > I recommend that you pick up 'Ruby for Rails', and 'Programming Ruby, > 2nd Edition' (a.k.a. The Pickaxe) to help get you started. > Even if you aren't interested in Rails, don't be put off by the title > of 'Ruby for Rails'. It is an excellent book that just happens to use > Rails as its example code. It worked! Thank you very much. is this one of the books you are talking about? http://www.ruby-doc.org/docs/ProgrammingRuby/ also, is Ruby for Rails available to read online like the Pragmatic Programmer's Guide, or do I have to buy it? thanks again -- Posted via http://www.ruby-forum.com/.