'先在Excel里面另存为文本文件‘3000.txt’,然后 dim i as long dim head as string dim ln as string open "3000.txt" for input as #1 line input #1,head for i=1 to 150 open right("00"+CStr(i),3)+".txt" for output as #2 print #2,head for j=1 to 20 line input #1,ln print #2,ln next close #2 next close #1
dim i as long
dim head as string
dim ln as string
open "3000.txt" for input as #1
line input #1,head
for i=1 to 150
open right("00"+CStr(i),3)+".txt" for output as #2
print #2,head
for j=1 to 20
line input #1,ln
print #2,ln
next
close #2
next
close #1