#include <fstream>
#include <iostream>
using namespace std;
int main () {
ofstream out("out.txt", ios::app);
// ofstream out("out.txt");
if (out.is_open())
{
out << "This is a line"<<endl;
out << "This is another line.\n";
out.close();
}
return 0;
}
C++ file read write
最新推荐文章于 2024-05-16 15:41:45 发布