Re: Looping thru file with 'gets()' fails to retrieve last record

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu