Dear,
I'm trying write a simple C program that h two input files. Both are large files. First file has one column and second file has two columns. Just compare the first colums of both files and print the whole line of second file that matches first one.
File2.txt
123456 ABCDE
234567 DEFER
563467 UIERT
349056 UIFRT
File1.txt
234567
563467
The output file should be like this
234567 DEFER
563467 UIERT
Could some one help me in finding logic.