Hi all,
I have two text files
file1
1234
13454
93837
82739
.
.
.
File2
comp i
93837 -4.52
82739 -2.2
1234 -2.36
13454 -2.25
I tried a python script to compare files and it should ideally do following search CID
from file1 in file2 and append i value to file1. but unfortunately it is not working can anybody help
file1=open("f1.txt","r")
file2=open("f2.txt","r")
for line1 in file1.readlines():
for line2 in file2.readlines():
if line1 in line2:
print line2
Thanks
n