谢谢
我现在写出了一部分
Private Sub Command1_Click()
Open "d:\1.txt" For Input As #1
Open "d:\3.txt" For Output As #3
Open "d:\2.txt" For Input As #2
Do While Not EOF(2)
If EOF(1) = True Then
Line Input #2, b
Print #3, b
Else
Line Input #1, a
Line Input #2, b
End If
Loop
Close (1)
Close (2)
Close (3)
End Sub