Hi Prakasherd
please do this task a I done for you in following snippet. Please dont forget to change path.
string[] filestring1 = File.ReadAllText(@"F:\Users\Desktop\Test.txt").Split(' ');
string[] filestring2 = File.ReadAllText(@"F:\Users\Desktop\Test1.txt").Split(' ');
string[] filestring3 = filestring1.Where(word => filestring2.Contains(word)).ToArray<string>();
Text1.Text = string.Join(" ", filestring3);
Thanks and Regards,
RK_Hirpara.