CoriEngine
Loading...
Searching...
No Matches
FileManager.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace Cori {
7 namespace FileSystem {
12 public:
13
19 static std::string ReadTextFile(const std::filesystem::path& filepath);
20
26 static std::string ReadTextFile(const std::string& filepath) {
27 return ReadTextFile(std::filesystem::path(filepath));
28 }
29 };
30 }
31}
Simple static class used to read files as string. Will likely expand its functionality later.
static std::string ReadTextFile(const std::filesystem::path &filepath)
Reads any file as a string.
static std::string ReadTextFile(const std::string &filepath)
Reads any file as a string.
Everything connected to interacting with files and filesystem is in this namespace.
Global engine namespace.