How to search for a string in a file. As string might be somewhere in the middle of text file.
Code:
Console.WriteLine("Input a string ");
String data = Console.ReadLine();
sr = File.OpenText(@"C:\username.txt");

String st = sr.ReadToEnd();
?????
help please?

thanks