4
我想讀從互聯網.txt文件幾號,並顯示在文本框中,但無果而終......vb.net從web.txt文件中讀取文本並將其顯示在文本框中?
這些系統的輸入:
Imports System.IO
Imports System.Text
Imports System.Net
這裏是閱讀文件的代碼:
Dim address As String = "http://www.url.com/text.txt"
Dim client As WebClient = New WebClient()
Dim reply As String = client.DownloadString(address)
TextBox2.Text = reply
謝謝你,爲我工作。我忘了在LOAD上設置私人分區,現在就像一個魅力。 – Chelovek