程序代码:
Dim i%
dm txt as byte
Open "c:\123.txt" For Binary As #1
For i = 1 To LOF(1)
Get #1, i, txt
Text1.Text = Text1.Text & Chr(txt)
Next i
Close #1
...全文
2127打赏收藏
【求助】关于VB二进制读文件出现乱码
我使用VB读取一个记事本的文本,结果读到了文本框控件里就出现了乱码。请各位前辈赐教!谢谢。 乱码截图: 程序代码: Dim i% dm txt as byte Open "c:\123.txt" For Binary As #1 For i = 1 To LOF(1) Get #1, i, txt Text1.Text = Text1.Text & Chr(txt) Next i Close #1