i was wondering if anyone could give me a few pointers on how to cover come a problem

i am wanting to create a program that will check 2 files that are the same but are in 2 different locations for example a file on the Hard Drive and another file on a memory stick - find the most recent file and save that in both locations again.

can anyone give me any pointers on how to do this?

Thanks