Posts by Diogo • 31 points
1 post
-
3
votes1
answer5340
viewsQ: C++ write to files
#include <fstream> #include <iostream> using namespace std; int main() { ofstream f_out; f_out.open("teste.txt"); if(! f_out.good()) return -1; else cout << "Arquivo criado!";…