如何将一个文件的内容复制到另一个文件 [英] How do I copy content of one file to another
本文介绍了如何将一个文件的内容复制到另一个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我能够轻松接受两个文件,但是dnt知道如何将一个文件内容复制到另一文件.....我需要后面的逻辑
I am able to accept the two files easily but dnt know how to copy one file content to another file.....i need a logic behind it
推荐答案
如果要从两个单独的文件中创建一个文件,只需使用dos命令副本即可:
复制file1.txt + file2.txt
然后将file2.txt的内容合并为file1.txt.
也可能有更多文件,例如:
复制file1.txt + file2.txt + file3.txt
复制file1.txt + file2.txt + file3.txt + file4.txt
等...
祝你好运!
If you want to create one single file from two separate files you can simply use the dos command copy:
copy file1.txt+file2.txt
The contents of file2.txt are then combined into file1.txt.
More files is also possible, like:
copy file1.txt+file2.txt+file3.txt
copy file1.txt+file2.txt+file3.txt+file4.txt
etc...
Good luck!
这篇关于如何将一个文件的内容复制到另一个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文