16 lines
272 B
C++
16 lines
272 B
C++
#include "filereader.hpp"
|
|
|
|
#include <fstream>
|
|
|
|
FileReader::FileReader() {
|
|
|
|
}
|
|
|
|
std::string FileReader::LoadTextFromFile(std::string path) {
|
|
std::ifstream t(path);
|
|
std::string text((std::istreambuf_iterator<char>(t)),
|
|
std::istreambuf_iterator<char>());
|
|
return text;
|
|
}
|
|
|