From: Victor Reyes Date: 2006-01-10T05:55:32+09:00 Subject: Re: "chomping" an array at read time ------=_Part_41448_12754192.1136840119992 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you both. Victor On 1/9/06, Ezra Zygmuntowicz wrote: > > > On Jan 9, 2006, at 9:59 AM, James Edward Gray II wrote: > > > On Jan 9, 2006, at 11:53 AM, Ezra Zygmuntowicz wrote: > > > >> lus =3D File.open("test.txt") {|f| f.readlines} > > > > Or just: > > > > lus =3D File.readlines("test.txt") > > James- > > When you do that does it close the file handle as well? I was jus= t > using the block to make sure the file handle gets closed. Are there > certain actions that will close the handle by themselves and others > that won't? > > Thanks- > -Ezra > > > > > James Edward Gray II > > > > > ------=_Part_41448_12754192.1136840119992--