how to "take" data from html on web with VB.NET?

  • Thread starter Thread starter DzemoT.
  • Start date Start date
* "DzemoT. said:
i want to "take" data from table from html document on internet (examlpe
from http://111.111.111.111/page.html) to string

\\\
Public Function LoadTextFile(ByVal Url As String) As String
Dim wrq As WebRequest = WebRequest.Create(Url)
Dim wrp As HttpWebResponse = _
DirectCast(wrq.GetResponse(), HttpWebResponse)
Dim sr As StreamReader = _
New StreamReader(wrp.GetResponseStream)
Dim Text As String = sr.ReadToEnd()
sr.Close()
wrp.Close()
Return Text
End Function
///
 
Back
Top