如何使用网络浏览器获取网站文本wothout?

如何使用网络浏览器获取网站文本wothout?

问题描述:

我试着做一个webbrowser来回,他我得到的文字。 但是获取文本的下载文件正在下载到我的电脑中。 我怎样才能得到这个文本而不使用它? 感谢如何使用网络浏览器获取网站文本wothout?

+1

你的问题有点难以理解。你介意重新措词并提供更多细节吗? – Jonathan 2012-03-14 18:51:57

+0

请修改你的问题,甚至无法理解你正在尝试做什么。 – DoctorLouie 2012-03-14 18:52:37

你可以使用一个WebClient

string output = string.Empty; 
using (WebClient wc = new WebClient()) 
{ 
    output = wc.DownloadString("http://stackoverflow.com"); 
}