
ZD
New User
Sep 5, 2002, 4:47 PM
Post #1 of 8
(976 views)
|
|
Comparing and merging two files
|
Can't Post
|
|
Hi, I am working on a simple script that synchronizes 2 lists. Where the "New" List can override the records of the "Old" list for those records with equal values in the "Main Column". Records in a single list (not in both) are all included in the resulting list. Example: Here 2 lists, each has to columns are to be synchronized based on the values in column 1. OLD List = {A,1},{B,2},{C,3},{D,4},{E,5} NEW List = {A,1}, {B,6},{C,3},{D,7},{F,9} The result should be Result = {A,1}, {B,6},{C,3},{D,7},{F,9},{E,5} Assuming that I don't know the count of records in each list, how can I do this? Any hints? Thanks
|