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

The FileReader class reads the contents of a file. More...

#include <filereader.h>

Public Member Functions

 FileReader (const QString &fileName)
 Constructs a FileReader object with the specified file name.
 
QString read () const
 Reads the contents of the file.
 

Detailed Description

The FileReader class reads the contents of a file.

This class reads the contents of a file and returns the contents as a QString.

Constructor & Destructor Documentation

◆ FileReader()

FileReader::FileReader ( const QString & fileName)
explicit

Constructs a FileReader object with the specified file name.

Parameters
fileNameThe name of the file to read.

Member Function Documentation

◆ read()

QString FileReader::read ( ) const

Reads the contents of the file.

Returns
The contents of the file as a QString.

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