[Solved] Problem with creating new File!!!

It is almost about 2 days that I tried to create new text file in my project but it does not work!! I would like to create a textfile in my current project, which already is not existed.

Here is my code:
@
QFile file;
file.setFileName(file_name +".txt");//file_name is the QString, which I get as aparameter
file.open(QIODevice::ReadWrite | QIODevice::Text);
QTextStream stream(&file);
stream<<"Create Document";
QTextStream(stdout) << this->file_name; //To see the name of the file, which has just been typed
file.close();
@