dim txt as string open "c:\temp.txt" for input as #1 '文件路径自己改 do while not eof(1) line input #1,txt text1.text=text1.text & txt & vbcrlf loop close #1追问
不能导入(unicode)啊,你有没有做过实验 才发表的?
第2个回答 2011-09-11
Private Sub Command1_Click() Dim str Open App.Path & "\1.txt" For Input As #1 str = StrConv(InputB(LOF(1), 1), vbUnicode) Close #1 Text1 = str End Sub