8 #include "../interface/FileIO.h"
19 using namespace jsoncollector;
28 outputFile.open(filename.c_str());
37 std::ifstream
inputFile(filename.c_str());
43 content.assign((std::istreambuf_iterator<char>(
inputFile)),
44 std::istreambuf_iterator<char>());
51 ifstream
ifile(path.c_str());
static bool fileExists(std::string &path)
static bool readStringFromFile(std::string &filename, std::string &content)
static void writeStringToFile(std::string &filename, std::string &content)