求教,用VB编程将a.txt与b.txt中的数据交叉合并,生成新文件c.txt。
a45,55b23,35,46,6530,4822,52,34,438,1619,26,52,66组合成45,55,23,35,46,6545,55,22,52,34,4...
a 45,55 b 23,35,46,65
30,48 22,52,34,43
8,16 19,26,52,66
组合成
45,55,23,35,46,65
45,55,22,52,34,43
45,55,19,26,52,66
------
8,16,19,26,52,6感
共9个数组
谢谢了 展开
30,48 22,52,34,43
8,16 19,26,52,66
组合成
45,55,23,35,46,65
45,55,22,52,34,43
45,55,19,26,52,66
------
8,16,19,26,52,6感
共9个数组
谢谢了 展开
2个回答
展开全部
dim s1,s2
open app.path & "\a.txt" for input as #1
open app.path & "\b.txt" for input as #2
open app.path & "\c.txt" for output as #3
do while not eof(1) or not eof(2)
line input #1,s1
line input #2,s2
print #3,s1 & "," & s2
loop
close #1
close #2
close #3
open app.path & "\a.txt" for input as #1
open app.path & "\b.txt" for input as #2
open app.path & "\c.txt" for output as #3
do while not eof(1) or not eof(2)
line input #1,s1
line input #2,s2
print #3,s1 & "," & s2
loop
close #1
close #2
close #3
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询