Topaz
5.0
Topaz Game Engine
Loading...
Searching...
No Matches
include
tz
os
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
8
namespace
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
tz::error_code
error_code
Error codes for Topaz.
Definition
error.hpp:14
Generated by
1.12.0