我已经下载了字符串并找到了索引但是无法获取我正在搜索的文本。这是我的代码:
System.Net.WebClient client = new System.Net.WebClient();
string downloadedString = client.DownloadString("http://www.gmail.com");
int ss = downloadedString.IndexOf("fun");
string mm = downloadedString.Substring(ss);
textBox1.Text = mm;
答案 0 :(得分:0)
尝试以下
if (downloadedString .Contains("fun"))
{
// Process...
}
答案 1 :(得分:0)