问题:
How to append text to a text file in C++?如何将文本附加到 C++ 中的文本文件? And create a new text file if it does not already exist and append text to it if it does exist.如果尚不存在,则创建一个新文本文件,如果存在,则将文本附加到其中。
解决方案:
参考一: https://en.stackoom.com/question/A2cL参考二: https://stackoom.com/question/A2cL