注册 登录
编程论坛 VB6论坛

vb6将指定路径下的两个文本文件合成位一个新的文本文件

肉不是你的 发布于 2020-04-23 20:00, 1533 次点击
vb6怎么将指定路径下的两个文本文件合成位一个新的文本文件呀?
(大佬救命 要交作业了
1 回复
#2
THE老王2020-04-28 21:42
dim str as string
textbox1.MultiLine = true
Open pathname1 for input as #1
do while not EOF(1)
   str= input(1, #1)
   textbox1.text = textbox1.text & str
loop
close #1
Open pathname2 for input as #2
do while not EOF(1)
   str= input(1, #2)
   textbox1.text = textbox1.text & str
loop
close #2
Open pathname3 for output as #3
write textbox1.text
close #3
应该是这样吧
1