Topaz 5.0
Topaz Game Engine
Loading...
Searching...
No Matches
file.hpp
1#ifndef TOPAZ_OS_FILE_HPP
2#define TOPAZ_OS_FILE_HPP
3#include "tz/core/error.hpp"
4#include <string>
5#include <filesystem>
6#include <expected>
7
8namespace tz::os
9{
10 std::expected<std::string, tz::error_code> read_file(std::filesystem::path path);
11 tz::error_code write_file(std::filesystem::path path, std::string_view data);
12}
13
14#endif // TOPAZ_OS_FILE_HPP
error_code
Error codes for Topaz.
Definition error.hpp:14