Inviwo 0.9.12-pre
Inviwo documentation
|
#include <textfilereader.h>
Public Member Functions | |
TextFileReader (const std::filesystem::path &filePath) | |
std::string | read (const std::filesystem::path &filePath) |
std::string | read () |
void | setFilePath (const std::filesystem::path &filePath) |
const std::filesystem::path & | getFilePath () const |
Reader for text files.
std::string inviwo::TextFileReader::read | ( | ) |
Read a file and return the content as a string. Throws an exception if file could not be opened and prints an error message to the error log.
std::string inviwo::TextFileReader::read | ( | const std::filesystem::path & | filePath | ) |
Read a file and return the content as a string. Throws an exception if file could not be opened and prints an error message to the error log.
filePath | Path of file. |