How do i read HTML files into a string like .txt files.
C#
2
Posts
2
Posters
0
Views
1
Watching
-
I want my program to read in an HTML file on the internet into a string, how do i go about doing this? Thanks in advance, RWSTF.
-
I want my program to read in an HTML file on the internet into a string, how do i go about doing this? Thanks in advance, RWSTF.
1.Download the file. Look up for this HttpWebRequest, or WebClient in MSDN (WebClient is somewhat easier to use for the first time). If you dont know, also look up HTTP communication 2.Save the the downloaded string into a text file, look up IO e.g.: StreamWriter Peter Molnar