如何阅读HTML文件以及如何在C#中找到所需的字符串?
问题描述:
您好,
我想创建一个可以读取html文件的应用程序。然后我想搜索所需的字符串并使用C#将数据转换为文本编辑元素。你能帮忙解决任何例子或教程吗?谢谢!
问候
我的尝试:
WebClient客户端=新的WebClient();
字符串htmlCode = client.DownloadString(D:/ Work 2017 / Site.html);
Hello,
I would like to create an application that could read an html file. Then I would like to search desired strings and get the data to text edit elements using C#. Could you please help with any example or tutorial? Thank you!
Regards
What I have tried:
WebClient client = new WebClient();
String htmlCode = client.DownloadString("D:/Work 2017/Site.html");