+ 4
http://www.cplusplus.com/doc/tutorial/files/ #include <iostream> #include <fstream> using namespace std; int main(void) { ofstream myfile; myfile.open("example.txt"); myfile << "Writing this to a file.\n"; myfile.close(); return 0; }
18th Sep 2016, 10:53 PM
Zen
Zen - avatar