Re: Looping thru file with 'gets()' fails to retrieve last record
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Aug 05, 2004
- 446 views
On Wed, 04 Aug 2004 17:32:19 -0700, John F Dutcher <guest at RapidEuphoria.com> wrote: <snip> > line = gets(fn) <----- 1st record retrieved here <snip> >for 1 = 1 to 3772 do > ......process... > line = gets(fn) >end for That is 3773 calls to gets(). Make line an object, which will allow the while loop to work. Pete