I have a file of names, for example:
Nick Greg Matthew
I also have an array of:
1 2 3
Is there a way to represent Nick as 1, Greg as 2, and Matthew as 3 so that later down the road when let's say number 2 gets returned from a function, it can be referenced back to the string containing Greg and print out his name?
I hope that's not too confusing/vague, it's only a small part of a larger picture :/