finding the differences in 2 hash tables
Posted on 2003-11-04
I have a hash table that contains all possible names (called hashtable1)
I also have another hash table (called hashtable2) created by reading a data file (the data file contains names and values)
the only difference is that hashtable1 contains all possibilities and that hashtable2 only contains certain names and values
I want to display a list of the names that are in hashtable1 that are not in hashtable2 (NOTE: the values in the list from hashtable1 that are not in hashtable2 should be set to zero)
i also want to write to a file all the names and values that are in hashtable2 and the names from hashtable1 that aren't in hashtable2
does this make sense ?