http://qs321.pair.com?node_id=75208


in reply to Re: Re: Re: Skip 21 Lines
in thread Skip 21 Lines

No... the while goes through 21 one times, then breaks out... (tho might lose line 22... 1..20 might be needed in this case... but once it exits the loop you either start a new loop or read the reast into an array or whatever, since your placeholder in the file is now at line 22. You see? But that way it isnt perfoming the line check after the 21st line.. not a big efficiency savings... but a bit.
                - Ant

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Skip 21 Lines
by virtualsue (Vicar) on Apr 26, 2001 at 17:05 UTC
    OK, I see what you mean. I read it too fast the first time and thought your "rest of processing" bit was inside the first while(). My bad. Yes, you'd need 1..20 for this technique to work.

    I didn't see this response due to a config problem on my part. Now I know what "some notes below your chosen depth" means, sort of. I had not set a depth and assumed that I would see all responses in a thread. Apparently not.