我想进入主机文件的标签第一行#version X 然后将其放入标签中。
'read line of version
Dim sURL As String = "http://example.com/hosts"
Dim objNewRequest As WebRequest = HttpWebRequest.Create(sURL)
Dim objResponse As WebResponse = objNewRequest.GetResponse
Dim objStream As New StreamReader(objResponse.GetResponseStream())
Label7.Text = (objStream.ReadToEnd(1))
使用该代码label7.text根本不返回任何内容。我该如何解决这个问题?