文本文件的读取,打开文件但是如果有中文,读取的为什么是乱码?,程序如下
im strPath As String
strPath = Application.StartupPath
Dim oflLot As New System.IO.StreamReader(strPath + "\lot_data.txt", False, System.Text)
Dim strLine As String
Dim strTemp() As String
strLine = oflLot.ReadLine()
While (strLine <> "")
strTemp = Split(strLine, ",")
TextBox1.Text += "pp" + strTemp(0) + "/" + strTemp(1)
strLine = oflLot.ReadLine()
End While
oflLot.Close()
如果lot_data.txt中数据(12, 英语)
则”英语“,显示为“???”或者乱码,请高书指教