我有一個位於我的服務器上的文本文件。stringbuilder中的拆分字符串
的文本文件的內容是這樣的一個
hello,200
james,300
robin,100
而這就是我的編碼到現在爲止,並在StringBuilder的迭代爲每個測試項目,但它並沒有遍歷每個項目。我不明白問題在哪裏。
任何幫助非常讚賞
WinHttp.Open("GET", "http://mytmmt.cafe24.com/test.txt")
WinHttp.Send()
Dim sb As New System.Text.StringBuilder
sb.Append(WinHttp.ResponseText)
Dim lines() As String = Split(sb.ToString, vbNewLine)
For Each line As String In lines
Debug.Print(line) '<---------here should have to print but this line skip
Next
它工作!謝謝! –