Problem with creating .txt file - Maemo
duniu_bartek last edited by
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);@
mlong last edited by
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.)