VB.NET:
For nIter = 0 To nNumRecordsToRead
ReDim Preserve strRows(nIter + 1)
strRows(nIter) = sr.ReadLine()
Next nIter
While debugging, I'm getting the following for a reading:
nIter .... 678
nNumRecordsToRead .... 677
I would have thought that to be impossible, since I clearly said "For nIter = 0 to 677"
How can the counter exceed its bounds like that?
Matthew