How to compare two text file. If compare is match then copy the match file
Please provide me the code how to compare two file . Suppose there are 3 file.We compare file1 with file2 line by line(Row wise). Suppose i compare logonid(unique) of file1 with file2. If logonid is match then copy the entire row to file3. Please tell me the what is the code for it.

