如果这看起来太容易了,您好道歉
我有一个 text1.txt 包含以下文本:
Give it a break John {
Give 123sawnghaksdsj your best shot
},
Give it a break Mike {
Give asdwsadasdsad23 your lack shit
},
而从 text2.txt
Main mac(){
Jheader.pin.all
}
我想将 text2.txt 的内容附加到 text1.txt 之后
Give it a break Mike {
Give asdwsadasdsad23 your lack shit
},
不删除 text1.txt 中的任何内容
上面的文字只是接近我的场景的例子。
我试过搜索谷歌,但我得到的只是回显到一个文本文件,该文件将删除内容或附加到最后一行:(
它们很有用,但不是我想要的。