From: ts Date: 2002-11-18T03:18:23+09:00 Subject: Re: Read a file... >>>>> "B" == Bill Kelly writes: B> Thanks! I've experienced comparable behavior in returning B> values from the File.open block... which led to my question B> about whether the statement in ri and Pickaxe about File.open B> returning nil when a block is given, is correct? Well, ruby make something like this (when it has a block) file = File.open("test.dat", "r") begin yield file ensure close file end 'begin' ... 'ensure' return the value of the last expression (yield in this case) if it don't have an error Guy Decoux