Set Fso = CreateObject("Scripting.FileSystemObject")
Set A = Fso.OpenTextFile( "C:\Users\Administrator\Desktop\1.txt", 1, True)
N = 2 '这个2表示第2行以下
Do Until A.AtEndOfStream
StrLine = A.ReadLine
StrNew = StrNew &StrLine &vbCrLf
If A.Line-1 => N Then
Exit Do
End If
Loop
Set B = Fso.OpenTextFile("C:\Users\Administrator\Desktop\1.txt", 2, True)
B.Write StrNew