i have to search the string from html files using c# in asp.net, how to get the string from html file
<p>i have to search the string from html files using c# in asp.net, how to get the string from html file? this is the code im having </p>

<pre><code> private string getHtml(string key)
 {
     StreamReader f = new StreamReader("path");
     string htmlTag = key;
     string str = f.ReadToEnd().ToString();
     Match m = Regex.Match(str, "&lt;" + htmlTag + "&gt;" + "(.*)" + "&lt;/" + htmlTag + "&gt;", RegexOptions.Singleline);
     Console.WriteLine(m.Groups[0]);             
     return str;
 }
</code></pre>

<p>Thanks,
vasmay</p>
