1)先把要合并的.txt文件,进行数字递增的顺序编号,比如1.txt,2.txt,3.txt,或者hello1.txt、hello2.txt、hello3.txt,如图(1)所示:
2)点击电脑桌面右下角的【开始】—》运行—》输入:cmd–》切换到当前目录,比如,D:\Backup\Unit1\Data\demo,依次输入命令:
D:
cd D:\Backup\Unit1\Data\demo
type *.txt > res
如图(2)所示:
3)给res文件加一个后缀.txt,即 res –> res.txt,如图(3)所示:
效果如下: