Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
FileController.hpp
Go to the documentation of this file.
1
15
16#ifndef FILECONTROLLER_HPP
17#define FILECONTROLLER_HPP
18
19#include <QFile>
20#include <QString>
21
26namespace FileController {
27bool open(QFile &file, QIODevice::OpenMode mode);
28QString read(QFile &file);
29bool write(QFile &file, const QString &data);
30bool exists(const QString &path);
31} // namespace FileController
32
33#endif // FILECONTROLLER_HPP
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.