in reply to Updating the files with data from another file
Some sample (dummy) data and expected output would be useful, difficult to tell what exactly you are asking for - also, you will get better responses by posting any code you have tried so far.