02-22-2012 09:33 AM
Sorry, typo on my part.
That should be:
QFile file("./logs/mylog.txt")
Not:
QFile file(".logs/mylog.txt")
02-22-2012 09:33 AM
There was a typo. It is ./logs (or just logs/...)
I.e. "logs/my.log"
02-23-2012 01:36 AM - last edited on 02-23-2012 01:45 AM
Thanks david..
I have given QFile file("logs/mylog.txt");
if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
return 0;
QTextStream out(&file);
out << "The magic number is: " << 49 << "\n";
file.flush();
file.close();
Now how can i actually navigate to the file(mylog.txt) in my playbook or in PC connected via usb.
02-23-2012 01:55 AM - last edited on 02-23-2012 02:10 AM
PC: via usb/wifi: from Momentics IDE: Select QNX system perspecive > Target File System Navigator > Sandboxes> name of YourApllication (something like com.example.QtApp.someMoreChars)>logs>mylog.txt
and it's not accessible via ordinary mount to PC (via smb protocol)
from playbook - as I know - from your apllication only (i.e. read back your log file).
upd: from PC from cmd-line also possible to use blackberry-deploy -getFile
02-23-2012 04:02 AM
Many Thanks andrey and david.... I got everything clear
Regards,
Madhan
04-02-2012 05:23 AM - last edited on 04-02-2012 05:26 AM
I also tried to create a new directory in /accounts/1000/shared which failed. But creating a directory under /accounts/1000/shared/misc worked and I could create many subdirs and files there and access them from Desktop :-)
And the Webbrowser on the Playbook will be your friend by accessing file:///