Book Shelf
Loading...
Searching...
No Matches
FileWriter Class Reference

The FileWriter class is responsible for writing a string to a file. More...

#include <filewriter.h>

Public Member Functions

 FileWriter (const QString &fileName)
 Construct a new FileWriter object.
 
bool write (const QString &contents)
 Write a string to the file.
 

Detailed Description

The FileWriter class is responsible for writing a string to a file.

Constructor & Destructor Documentation

◆ FileWriter()

FileWriter::FileWriter ( const QString & fileName)

Construct a new FileWriter object.

Parameters
fileNameThe name of the file to write to.

Member Function Documentation

◆ write()

bool FileWriter::write ( const QString & contents)

Write a string to the file.

Parameters
contentsThe string to write.
Returns
true If the write operation was successful.
false If the write operation failed.

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