Quantcast
Viewing all articles
Browse latest Browse all 4

search within html file

Hi,

Just plz use the DOS's find method to specify the html file and do ur searching:

ProcessStartInfo info = new ProcessStartInfo("find \"html\"","c:\\name.html /n");
info.RedirectStandardOutput
=true;
info.UseShellExecute
= false;
Process p
= Process.Start(info);
StreamReader sr
= p.StandardOutput;
string s = sr.ReadToEnd();
Console.WriteLine(s);
sr.Close();


下载MSDN桌面工具(Vista,Win7)
我的博客园
慈善点击,点击此处


Viewing all articles
Browse latest Browse all 4

Trending Articles