From: Siddarth Chandrasekaran Date: 2010-05-10T17:21:41+09:00 Subject: Re: Files Or you could read it into an array, mess with it and write it back, although that's pretty ugly: array = File.open("junk").collect Siddarth On Mon, May 10, 2010 at 4:19 AM, Bernd Ritter wrote: > Hi David, > > the only way I could think of right now would be to read all lines and > increment a counter while reading. > > Am 10.05.2010 09:52, schrieb David Chapman: >> Thanks. Question #2. >> >> How can I write/read a specificied line from the file? >> > > >