searching a textfile for a keyword
<p>I have a text file with names as <code>balamurugan,chendurpandian,......</code>
if i give a value in the textbox as <code>ba</code> ....</p>

<p>If i click a submit button means i have to search the textfile for the value <code>ba</code> and display as <code>pattern matched</code>....</p>

<p>I have read the text file using </p>

<pre><code> string FilePath = txtBoxInput.Text;
</code></pre>

<p>and displayed it in a textbox using </p>

<pre><code>  textBoxContents.Text = File.ReadAllText(FilePath);
</code></pre>

<p>But i dont know how to search a word in a text file using c# can anyone give suggestion???</p>
