Hi All,
Please help me to write a code to read strings from a file and search in another file.
For eg:-
File1.txt
---------
jkl
mno
abc
def
ghi
File2.txt
---------
ghi 100
abc 50
def 45
I need to write into a file as below
output.txt
-----------
ghi 100
abc 50
def 45
jkl 0
mno 0
So i need to compare the 2 files and write the lines(with the value) if match and if not match then write the lines with a value zero.
Please someone help on this and appreciate your help!!
Thanks,
Nichu