04-05-2014 03:14 AM
I want to know how to create a folder and a file inside an SD Card and write data on to the file.
QDir *dir = new QDir(QDir::currentPath() + "/../../removable/sdcard/MyFolder");
qDebug() << "path exists? " << dir->exists();
and it shows false,
QFile *zipFile = newQFile("QDir::currentPath() + "/../../removable/sdcard/MyFolder/filename.zip");
and it also showed false;
I have checked access_shared and I'm able to get the sdcard path, please help
thank & regards
Solved! Go to Solution.
04-05-2014 03:34 AM
You use QDir::mkdir() to make a folder...
Check out the section on Creating new files and directories
04-05-2014 04:18 AM