i want to be able to read input from a file and find like entries and then add the corresponding data. i dont know if i explained that well so ill give an example...
the file would be like this (just example numbers)...
111111 15
222222 6
111111 4
333333 2
222222 3
so i want to read that into the program. then i want to program to find that there are two entries for 111111 and add up the 15+4 to get 19 in this example. 222222 would give 0. and 333333 would give 2.
i guess the part where i am getting lost is how to find the like entries. i have never attempted this so a push in the right direction would be a huge help. thanks ahead of time.