[.NET]將StreamReader輸出結果放在Textbox上
請輸入專案類型(網站專案或者應用程式專案):
想請問大家
要將StreamReader讀取出來的檔案結果
可以呈現在Textbox上
下面是目前讀取檔案的程式碼
Dim sr As StreamReader = New
StreamReader(Server.MapPath("test1.txt"), Encoding.Default)
Dim line = sr.ReadLine()
While Not line Is Nothing
Response.Write(line.ToString & "<br>")
line = sr.ReadLine
End While
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.25.102.221
→
09/27 19:41, , 1F
09/27 19:41, 1F
→
09/27 23:26, , 2F
09/27 23:26, 2F
→
09/27 23:26, , 3F
09/27 23:26, 3F
→
09/28 15:16, , 4F
09/28 15:16, 4F