For lack of a better term I wish to collapse a data file as so:
03/01/04|item1|3081|| |
03/01/04|item2|2081|| |
03/01/04|item3|1195|| |
03/01/04|item1||556||
03/01/04|item2||450||
03/01/04|item3||397||
03/01/04|item1|||434|
03/01/04|item2|||544|
03/01/04|item3|||232|
03/01/04|item1||||343
03/01/04|item2||||545
03/01/04|item3||||433
so that it would read:
03/01/04|item1|3081|5 56|434|343
03/01/04|item2|2081|4 50|544|545
03/01/04|item3|1195|3 97|232|433
(data would extend beyond 03/01/04, so subsequent dates must be taken into
account)
My idea is to import into an array, and then "collapse" it somehow - but
how? Is it possible without numerious iterations?
Many thanks in advance.