DO both the files look alike? I mean the data starts at same point and the values stay in same rows?
If yes then same I said above in for loop you will find the index value can get index and then open second file and use the index as stated above

else you can use a assign activity and increment by 1 to get the loop count as well
cheers