7,763
社区成员
发帖
与我相关
我的任务
分享
Option Explicit
Private Sub Command1_Click()
Dim sFile As String
Open "d:\1.txt" For Input As #1 '打开你的文件
Do
Line Input #1, sFile
'在这里添加你的处理代码
MsgBox sFile '处理后一行一行读出
Loop While Not (EOF(1))
Close #1
End Sub