Created
January 25, 2018 01:44
-
-
Save esmarr58/17ad7fd6596a826cf27e827aa678a17a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void MainWindow::on_pushButton_clicked() | |
{ | |
QString nombreArchivo = ui->TextoNombre->text(); | |
QString contenidoArchivo = ui->TextoArchivo->toPlainText(); | |
QFile archivo(nombreArchivo); | |
if(archivo.open(QIODevice::WriteOnly | QIODevice::Text)){ | |
QTextStream datosArchivo(&archivo); | |
datosArchivo << contenidoArchivo << endl; | |
} | |
archivo.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment