I am battling to write some data to a simple text file
Here is my code:
QFile file(app->applicationDirPath() + "/data/testfile.txt");
if (file.open(QIODevice::WriteOnly)) {
QTextStream stream(&file);
stream << "DATA HERE \n";
}
The app compiles and runs fine.
Just I cant find the file, or more likely: it is not being created
Where am I going wrong? :)
Thanks
Extra Info:
Run: on my device (BlackBerry Z10)
IDE: QNX IDE (Native SDK) / (Cascades)
Example code is located in: TestApp::TestApp(bb::cascades::Application *app)
: QObject(app)