Conference Registration 2024.07.18.04
|
The FileWriter class provides functionality to write data to a file. More...
#include <filewriter.h>
Public Member Functions | |
FileWriter (const QString &fileName) | |
Construct a new File Writer object. | |
bool | write (const QString &contents) const |
Write the contents to the file. | |
The FileWriter class provides functionality to write data to a file.
This class provides a simple interface to write data to a file. It takes a file name as input and provides a write method to write data to the file.
|
explicit |
Construct a new File Writer object.
fileName | The name of the file to write to. |
bool FileWriter::write | ( | const QString & | contents | ) | const |
Write the contents to the file.
contents | The contents to write to the file. |