35 bool open(QFile &file, QIODevice::OpenMode mode)
37 return file.open(mode);
52 QTextStream in(&file);
67 bool write(QFile &file,
const QString &data)
69 QTextStream out(&file);
70 out << data << Qt::endl;
85 return QFile::exists(path);
Definition of the FileController namespace.
Namespace containing file handling functions.
bool open(QFile &file, QIODevice::OpenMode mode)
Open a file.
bool exists(const QString &path)
Checks if a file exists.
QString read(QFile &file)
Reads a line from the file.
bool write(QFile &file, const QString &data)
Writes a line to the file.