I have battled over this for a while and it is time to ask for assistance.
Scenario is this.
- I have an Array that contains names
- I have another Array that contains numbers
- Both arrays have the same amount of fields and they match in order.
Code: Select all
ARR1 ARR2
Chris 5.400
Steve 6.230
Phil 0.501
Steve 2.001
Steve 3.000
Phil 1.00
So what I need to do is end up with a file (or another array) that contains one of each name and the total numbers like this:
Code: Select all
Chris 5.400
Steve 11.231
Phil 1.501
I have tried using regex and almost got there but failed. I think I just need a bit of guidance here to what seems like an easy thing to solve on paper but in code it is beating me.
Can anyone offer any ideas?
Thank you in advance of course.