C++添加字符串到文件
#include <iostream> #include <fstream> int main() { std::ofstream out("filename", std::ios::app); out << "aString"; out.close(); return 0; }
C++添加字符串到文件
#include <iostream> #include <fstream> int main() { std::ofstream out("filename", std::ios::app); out << "aString"; out.close(); return 0; }