How to search for a string from readline in c#

98

How to search for a string from readline in c# -

string s = "abc";//string to be searched
//'line' is the storing the line which is read
if(line.Contains(s))
{
   //action to be performed
}

Comments

Submit
0 Comments