Conference Registration 2024.07.18.04
Loading...
Searching...
No Matches
FileWriter Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FileWriter()

FileWriter::FileWriter ( const QString & fileName)
explicit

Construct a new File Writer object.

Parameters
fileNameThe name of the file to write to.

Member Function Documentation

◆ write()

bool FileWriter::write ( const QString & contents) const

Write the contents to the file.

Parameters
contentsThe contents to write to the file.
Returns
True if the write operation was successful, false otherwise.

The documentation for this class was generated from the following files: