It is possible that in a console application from dev c ++ you can create an excel file with data entered from there, and if possible how it could be done? I understand that you can create txt files and enter data from c ++, which I have already done and I will share the code of this, but from c ++ create an excel file and enter the data from there is possible?
I attach my code to create a txt file and enter data from c ++
#include<iostream>
#include<stdlib.h>
#include<fstream>
using namespace std;
void escribirFrases();
int main(){
escribirFrases();
system("pause");
return 0;
}
void escribirFrases(){
ofstream archivo;
string nombreArchivo,frase;
char rpt;
cout<<"Digite el nombre del archivo: ";
getline(cin,nombreArchivo);
archivo.open(nombreArchivo.c_str(),ios::out); //Creamos el archivo
if(archivo.fail()){ //Si a ocurrido algun error
cout<<"No se pudo abrir el archivo";
exit(1);
}
do{
fflush(stdin);
cout<<"Digite una frase: ";
getline(cin,frase);
archivo<<frase<<endl;
cout<<"\nDesea agregar otra frase(S/N): ";
cin>>rpt;
}while((rpt == 'S') || (rpt == 's'));
archivo.close(); //Cerramos el archivo
}