how to check if a file exists in a directory
-
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
-
@jsulm thank you :)