29 #include "resources.h"
33 std::string FileHelpers::getFileString(std::string fileName) {
34 std::ifstream fileInput(fileName.c_str());
36 buffer << fileInput.rdbuf();
42 buffer << RESOURCE_PATH <<
"/" << relPath;
48 buffer << TEST_RESOURCE_PATH <<
"/" << relPath;
55 results.open(filePath.c_str(), ios::in);
59 while (results >> std::ws && getline (results,line));;
61 std::stringstream stream(line);
static std::string getTestResourcePath(std::string relPath)
static double getFinalScore(std::string filePath)
A series of functions to assist with file input/output.
static std::string getResourcePath(std::string relPath)