in reply to Seek, Copy & Paste

Sounds like a homework problem, so I won't post code.

Read the File1 names into the keys of a hash, read the File2 names in and check each to see if it is defined as a hash key, write the name to File3.