Hi Madhu,
If the data in your text is seperated by return character, that means all the data val1,Val2 ... are in different lines. so if you will use ReadLine while retriving values from your text file it will always return the first value ie Val1 (with above statements in your code) and so the comarison will be fail. Use ReadAll to retreive all the text in your file and thenn compare, It should work.
If the data in your text is seperated by return character, that means all the data val1,Val2 ... are in different lines. so if you will use ReadLine while retriving values from your text file it will always return the first value ie Val1 (with above statements in your code) and so the comarison will be fail. Use ReadAll to retreive all the text in your file and thenn compare, It should work.

