Hi,
I got a problem i cannot create new file on iPad. There is the code:
QFile tf("abc.txt");
tf.open(QIODevice::ReadWrite);
tf.write("TEST");
tf.close();
if(QFile::exists("abc.txt"))
qDebug()<<"abc.txt exists";
else
qDebug()<<"abc.txt doesnt exists";
I keep getting abc.txt doesnt exists in debug console.
I have no idea why, the code works on linux, mac and android, so why doesnt it work on iOS.
Thanks
EDIT: I forgot to mention I alse get this: “QIODevice::write: device not open”
I believe application doesnt have permission to write on iPad but what should i do to set it?
↧