You are right, neither code works with the extra space.
But what has me kind of curious
Why did you have to change my example/question?
Using an array?
Can't figuire it out the correct way, no?
See I am working with a rather large file, not too bad.
Anyway i have multiple values, and I can't cut and paste that info in.
It's work, so i make up these stupid friend examples, that look like homework examples.
Which is pretty impressive now that I think about it.
You thought it looked like textbook examples, thanks.
Anyway Doogie, show me how you would do it my way.
And if your line looks like mine, no problem I'm glad u learned something.