首页 > 技术文章 > c++写入txt
xzh1993 2017-10-16 15:54 原文
用ofstream 输出流,#include <fstream>ofstream outf; outf.open("abc.txt");outf<<123<<endl;outf.close();