02-24-2013 08:38 PM
Hey guys I've gotten a lot of help for the first two questions I asked here so I thought I'd ask again.
I'm implementing a leaderboard / highscore board in my game, for which I want to read from a file the current high scores, and write to it if there is a new high score.
I read this: http://developer.blackberry.com/native/documentati
I'm not sure how to implement this. What do I put in here:
QFile file("data/documents/testfile.txt");
... then use out << scores;
That doesn't seem to work. I can read high scores fine from assets folder, but not sure how to write them back for later.
Thanks
02-25-2013 02:37 AM
Hi,
The directory should be created first:
QDir dir;
dir.mkpath("data/documents");
Please check this page for details:
http://developer.blackberry.com/cascades/documenta
When absolute URL is needed the following line can be used:
QDir::homePath() + "/data/filename"
02-25-2013 03:13 AM