Apendar string em arquivo texto em C++

Apendar string em arquivo texto em C++

using namespace std;
#include <fstream>

int main(){
 fstream outFile("test.txt", ios::out | ios::app);
 outFile << "test - ";
 outFile << "luis ";
 outFile.close();
}

Deixe uma resposta

Copyright © 2018 Luis Tavares. Todos os direitos reservados