c++ write file

This commit is contained in:
Alexander Popov 2024-12-08 16:00:30 +03:00
parent 78d372d7e7
commit 53b2658a81

View File

@ -0,0 +1,10 @@
#include <fstream>
using namespace std;
int main() {
ofstream myfile;
myfile.open("example.txt", ios::in | ios::app);
myfile << "Сообщение\n";
myfile.close();
return 0;
}