Reads/writes data to/from the disk.
More...
#include <DiskFileReader.h>
|
void | readFileInto (const std::string &filename, std::stringstream &buffer) |
| Read data from a file on the disk. More...
|
|
void | writeToFile (const std::stringstream &buffer, const std::string &filename, WriteMode mode=WriteMode::Overwrite) |
| Write data to a file on the disk. More...
|
|
Reads/writes data to/from the disk.
Definition at line 46 of file DiskFileReader.h.
◆ readFileInto()
void ime::utility::DiskFileReader::readFileInto |
( |
const std::string & |
filename, |
|
|
std::stringstream & |
buffer |
|
) |
| |
Read data from a file on the disk.
- Parameters
-
filename | Name of the file to read data from |
buffer | Stores the contents of the read file |
- Exceptions
-
- Note
- The file name must be preceded by the path to the file
◆ writeToFile()
void ime::utility::DiskFileReader::writeToFile |
( |
const std::stringstream & |
buffer, |
|
|
const std::string & |
filename, |
|
|
WriteMode |
mode = WriteMode::Overwrite |
|
) |
| |
Write data to a file on the disk.
- Parameters
-
buffer | Contents to write to file |
filename | Name of the file to write data to |
mode | Mode in which file is opened in |
- Exceptions
-
- Note
- The file name must be preceded by the path to the file
The documentation for this class was generated from the following file: