编程实现两个文本的合并,要求将其中一个文件的所有内容添加到另一文件的尾部.

[复制链接]
查看11 | 回复1 | 2012-6-21 21:15:47 | 显示全部楼层 |阅读模式
'比如把2合并到1Private Sub Command1_Click()Dim s$, strTxt$'读取文本Open App.Path & "\2.txt" For Input Access Read As #1
Do While Not EOF(1)
Line Input #1, strTxt
s = s & strTxt & vbCrLf
Loop
Close #1'输出文本Open App.Path & "\1.txt" For Append As #1
Print #1, s; C...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行