Hi there guys, I've added 4 text files as resource files to my program, but the files wont open. I would like to read and write on three of these file and "append" on the forth. Here is my code below where I try to open the file.
Qt Code:
  1. QFile sourcedTenders_file(":/cpt_rcs/App_Resources/cpt/Current_Sourced_Tenders.txt"); //contains urls for sourced tenders.
  2. if(!sourcedTenders_file.open(QFile::ReadWrite | QFile::Text))
  3. {
  4. QMessageBox msgBox_2;
  5. msgBox_2.setText("Url File could not open for reading...");
  6. msgBox_2.exec();
  7. }
  8. QTextStream in_stream(&sourcedTenders_file);
To copy to clipboard, switch view to plain text mode 

And I have attached a picture below of where the files are situated in the file tree.filetree.PNG