Problem with creating .txt file - Maemo
-
Hello Everyone
In my app ( for nokia N900 ) I would like to create a new .txt file and edit it. How to create new txt file or how to use existing file? I include QFile library to mainwindow.h and trying in this way but without result. After install app on N900 cordinate.txt no exist.
@ QFile *MyFile;
MyFile = new QFile("cordinate.txt");
MyFile->open(QIODevice::ReadWrite | QIODevice::Text);@ -
Which directory are you expecting coordinate.txt to exist in? I believe currently it's going to try to write it in the app's current working directory, which may or may not be what you want, depending on where the application is at on the device (and what permissions exist there, etc.)