冯婧个人资料身高:用vb如何把文本文件中读取到的数据横着排列

来源:百度文库 编辑:神马品牌网 时间:2024/05/11 18:34:10
例如:425
577
256
.......
上面一组数据如何能横着放既:
写到另外一个文本文件中成为:425 577 266 ......
最好一行放十个数据然后另起一行放十组!!!

dim nextline as string
dim txt as string
txt=""
open filename1 for input as 1
open filename2 for output as 2
do until eof(filenum)
line input filenum,nextline
txt=txt+nextline+" "
loop
print 2,txt
close 1
close 2