From: Robert Klemme Date: 2013-06-05T15:48:30+09:00 Subject: Re: Ruby Progress Catcher --047d7b5d5b94d5c3cf04de62956a Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 5, 2013 at 3:13 AM, Carl s. wrote: > So what I am asking how to do is have a script that reads all of the > lines in a text file, then in a loop have it print "Lines: (number its > on) and have this number increment by 1 until the text file is > completely empty. Thanks to all who attempt :) > I am not really sure what to make of this: reading does not modify the file so it cannot be "empty" after any amount of read operations. Are you maybe just looking for numbering lines in a file? Then I suggest $ cat -n the_file Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --047d7b5d5b94d5c3cf04de62956a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

--047d7b5d5b94d5c3cf04de62956a--