add file_util

This commit is contained in:
scawful
2024-08-12 10:30:36 -04:00
parent 45ab5a8a2a
commit cfbe0848ca
2 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#include "file_util.h"
#if defined(_WIN32)
#include <windows.h>
#else
#include <dirent.h>
#include <sys/stat.h>
#endif
#include <fstream>
#include <sstream>
namespace yaze {
namespace app {
namespace core {
std::string LoadFile(const std::string& filename) {
std::string contents;
// TODO: Load a file based on the platform and add error handling
return contents;
}
} // namespace core
} // namespace app
} // namespace yaze