没有测试,试试看
Open "c:\txt1.txt" for input as #1
For j = 2 to 9
Open "c:\txt" & j & ".txt" for output as #j
Next j
i = 1
Do until EOF(1)
Lineinput #1,A
i = i + 1
j = IIF(i mod 8 = 0,9,(i mod 8)+1)
Print #j,A
Loop
For j = 1 to 9
Close #j
Next j
[
本帖最后由 owenlu1981 于 2014-3-7 08:29 编辑 ]