+ 10
#include <iostream> #include <fstream> using namespace std; int main() { ofstream MyFile("test.txt"); if (MyFile.is_open()) { MyFile << "This is awesome! \n"; } else { cout << "Something went wrong"; } MyFile.close(); }
28th Nov 2017, 9:06 AM
Vukan
Vukan - avatar