how to check if a file exists in a directory
-
wrote on 15 Jul 2020, 11:22 last edited by
Hi,
How do I check whether a file exists in a given path or not in Qt?for ex, if my file location is:
QString filePath = QCoreApplication::applicationDirPath()+"/data/filename.txt";
-
Hi,
How do I check whether a file exists in a given path or not in Qt?for ex, if my file location is:
QString filePath = QCoreApplication::applicationDirPath()+"/data/filename.txt";
@russjohn834 Documentation says: https://doc.qt.io/qt-5/qfile.html#exists
-
wrote on 15 Jul 2020, 12:08 last edited by
@jsulm thank you :)
1/3