Reorganising further
This commit is contained in:
11
src/Helpers.cpp
Normal file
11
src/Helpers.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "Helpers.hpp"
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
// Should add caching here
|
||||
std::string Helpers::ReadFile(std::string Path) {
|
||||
std::ifstream file(Path);
|
||||
std::stringstream contents;
|
||||
contents << file.rdbuf();
|
||||
return contents.str();
|
||||
}
|
Reference in New Issue
Block a user