Check out example codes for "How to search for a string from readline in c#". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com