将app.path替换成你要的路径
‘写文件
Open IIf(Len(App.Path) = 3, App.Path, App.Path & "\") & "111.txt" For Output As #1
Cls
Print #1, List1.ListCount & vbNewLine & Temp
Close #1
'读文件
Dim stmp As String
sTemp = App.Path & "\111.txt"
Open sTemp For Input As #1
Line Input #1, tmp
‘这里是你的代码
Close #1