From: "Jesús Gabriel y Galán" Date: 2009-12-03T06:19:56+09:00 Subject: Re: Need help with writefile line ranges within extensive file On Wed, Dec 2, 2009 at 10:08 PM, Alpha Blue wrote: > Thanks mate - I appreciate the short fix. > > I ended up having to do a lot more with the file and change it so I can > spot issues in certain areas.  So, I've rebuilt and adapted it as such: > >      g = File.open(@filename, "r") >      a = g.readlines Here you are not closing the file. Use a = File.readlines(@filename) instead. Jesus.