Hi
I want to put some text in a text file. If the file don't exists i want to create it.

here is my code for this.
Qt Code:
  1. QFile file("Output.txt");
  2. file.open(QIODevice::WriteOnly | QIODevice::Text);
  3. QTextStream out( &file );
  4.  
  5. out << StrABeskrivning << endl;
  6. out << IntAPris << endl;
  7. out << StrBBeskrivning << endl;
  8. out << IntBPris;
To copy to clipboard, switch view to plain text mode 

But when I compile it i get this error:
error: variable 'QTextStream out' has initializer but incomplete type

Do someone have a idea?

/
Victor