you don't need a data structure at all. upon reading each entry open the file (for append) named in column one of the entry, write the entry and close it. loop. this assumes that you don't need to add up entries of the same fruit for a particular character.
the hardest line to type correctly is: stty erase ^H