2,462
社区成员
发帖
与我相关
我的任务
分享
Sub Pick_Up1()
Dim ss As String '此处定义ss,后用ss1 Open "D:\xx.txt" For Input As #1 '打开文本文件
Line Input #1, ss1 ' <-------执行这一句的速度特别慢
End Sub '上句ss1未见定义
Option Explicit
Dim str As String
Dim l As Integer
Dim i As Integer
Dim j As Integer
Private Sub cmdOpen_Click()
Dim NextLine As String
Dim Txt_sj As String
CommonDialog1.ShowOpen
Open CommonDialog1.FileName For Input As #1
Do While Not EOF(1)
Line Input #1, NextLine
str = str & NextLine & Chr(13) & Chr(10)
Loop
Close