EVO_NODISCARD auto exists(const std::string& path) noexcept -> bool;
Returns if a file exists given the path
EVO_NODISCARD auto readFile(const std::string& path) noexcept -> Result<std::string>;
Quick interface to read a file.
EVO_NODISCARD auto readBinaryFile(const std::string& path) noexcept -> Result<std::vector<byte>>;
Quick interface to read a binary file.
EVO_NODISCARD auto writeFile(const std::string& path, const std::string& data) noexcept -> bool;
Quick interface to write a file. Returns false
if it failed.
EVO_NODISCARD auto writeBinaryFile(const std::string& path, const std::vector<byte>& data) noexcept -> bool;
Quick interface to write a binary file. Returns false
if it failed.
enum class FileMode : ui8 {
Read,
Write,
_max,
};