added back legacy code

This commit is contained in:
Ben
2020-05-15 15:12:13 +01:00
parent 8f9318c83a
commit 72a359bce7
46 changed files with 21733 additions and 0 deletions

View 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;
}