这样可以打开大文件,速度快!
Dim FNum As Integer Dim TextByte() As Byte '存放文件读出来的字节 FNum = FreeFile Open "c:\aaa.txt " For Binary As #FNum ReDim TextByte(LOF(FNum)) Get #FNum, , TextByte Close #FNum text1.text=StrConv(TextByte, vbUnicode) '关键的一步
这样可以打开大文件,速度快!
Dim FNum As Integer Dim TextByte() As Byte '存放文件读出来的字节 FNum = FreeFile Open "c:\aaa.txt " For Binary As #FNum ReDim TextByte(LOF(FNum)) Get #FNum, , TextByte Close #FNum text1.text=StrConv(TextByte, vbUnicode) '关键的一步