Robert,
Well spotted on the "pass by reference", my mistake.
I updated my code and it looks a lot better, but is still not quite giving me what I expect.
The final output now shows:
USER>w stream.SizeGet()
2491024949
USER>while(stream.AtEnd=0){set i=stream.FindAt(-1,"Invalid password",.x)+i set j=j+1}
USER>w stream.AtEnd
1
USER>w i
2442920326
USER>w j
3205553
USER>
So it's still not quite going to the end of the file (see SizeGet() and i output above) and it is missing the last 5 "Invalid password" entries (GLOGG is showing 3205558 instances).
Let me know if there is any further information that I can send on that might help.
I'll keep investigating from my side as well.
Oliver.
- Log in to post comments