added back legacy code
This commit is contained in:
15
legacy/src/util/filereader.cpp
Normal file
15
legacy/src/util/filereader.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user