How to write QFile in Blackberry 10 device? -


i new in blackberry 10, want create file in device document.

does knows how same?

thanks in advance.

you can access device's documents folder using "/accounts/1000/shared/documents" path. need access_shared permission access shared folders. can find more information bb10 file system here.

following sample code shows how write file using qfile.

qfile textfile("/accounts/1000/shared/documents/newfile.txt"); textfile.open(qiodevice::writeonly | qiodevice::text); qtextstream out(&textfile); out << "this text file\n"; textfile.close(); 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -