Dim PathUserData As String = Application.StartupPath & "\实操统计sql.txt"
TextTB.Text = System.IO.File.ReadAllText(PathUserData)
‘或者用 System.IO.File.ReadAllText(PathUserData, System.Text.Encoding.UTF8)
上面这个是读取
System.IO.File.ReadAllText(PathUserData, System.Text.Encoding.UTF8) 此用法是把编码方式转为UTF8
写入如下:
Dim PathUserData As String = Application.StartupPath & "\实操统计sql.txt"
Dim t As System.IO.StreamWriter = New System.IO.StreamWriter(PathUserData, True, System.Text.Encoding.UTF8)
t.Write(TextTB.Text)
t.Close()
- 1
- 2
- 3
- 4
追加如下:
Dim PathUserData As String = Application.StartupPath & “\实操统计sql.txt”
Dim t As System.IO.StreamWriter = New System.IO.StreamWriter(PathUserData, True, System.Text.Encoding.UTF8)
t.WriteLine(TextTB.Text)
t.Close()
同样的,你可vb.net教程以把
System.Text.Encoding.UTF8
- 1





![战神引擎传奇手游【1.76盛战传奇免授权版[摸摸登陆器]】最新整理Win系复古服务端+安卓苹果双端+GM授权物品后台+详细搭建教程](https://cdn.jxasp.com:9143/image/20251106/1B4E8594B3BEB90E8601D63A8A39CB0B.jpg)













