Re: [VB5) Faster way to read a text file?



While x < Max And (x <> -1)

Not sure, but you might have to get fancier with this to be a true test.
It's possible that the comparison here is being optimized more than if it
were, say, "x < Max And (y <> -1)". I'd also be curious (and will probably
try, myself, tomorrow) to see the results if the "x <> -1" were changed to
something like "x <> 50000" or similar, thus more closely ending a
search-style loop which would be more likely to end prematurely.



Rob


.