回复 1# c755731262 - Set fso = CreateObject("scripting.filesystemobject")
- Set A=fso.OpenTextFile("D:\A.txt",1)
- Set B=fso.createtextfile("D:\B.txt",true)
- i=1
- Do Until A.AtEndOfStream
- s=A.ReadLine
- If i>=2 And i<=5 Then
- B.write s & vbcrlf
- ElseIf i>5 Then
- Exit Do
- End If
- i=i+1
- Loop
- A.Close
复制代码
|