Malek
21st December 2010, 23:16
Hi guys ...
I just want to write on a text file from QString and view this file for the user.
I tried again and again.And saw the links which the forum suggest but no output.
The problem that make me angry :mad: is Error without line nuber which says:
mainwindow.o ERROR1
!!
This is one of my tries:
void MainWindow::on_pushButton_clicked()
{
QString str = "Malek";
QFile file ("hello");
QTextStream outstream(&file);
outstream << str;
}
Can you help me ,Please.
I just want to write on a text file from QString and view this file for the user.
I tried again and again.And saw the links which the forum suggest but no output.
The problem that make me angry :mad: is Error without line nuber which says:
mainwindow.o ERROR1
!!
This is one of my tries:
void MainWindow::on_pushButton_clicked()
{
QString str = "Malek";
QFile file ("hello");
QTextStream outstream(&file);
outstream << str;
}
Can you help me ,Please.