wirasto
19th April 2013, 20:20
How to force create path if it not exists with QFile?
QFile f("/tmp/this/path/is/not/exists/test.php");
if (!f.open(QIODevice::WriteOnly|QIODevice::Truncate) ) {
qDebug() << "Gagal:" << f.errorString();
}
QFile f("/tmp/this/path/is/not/exists/test.php");
if (!f.open(QIODevice::WriteOnly|QIODevice::Truncate) ) {
qDebug() << "Gagal:" << f.errorString();
}