The QFile class provides an interface for reading from and writing to files.
bool open(OpenMode flags) override
The QTemporaryFile class is an I/O device that operates on temporary files.
static QTemporaryFile * createNativeFile(const QString &fileName)
QFile f(":/resources/file.txt")
[0]