Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
file.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <fstream>
4#include <filesystem>
5#include <optional>
6
7#include <spdlog/spdlog.h>
8
9namespace dcn::file
10{
11 std::optional<std::string> loadTextFile(std::filesystem::path path);
12
13 std::optional<std::vector<std::byte>> loadBinaryFile(std::filesystem::path path);
14}
Definition file.hpp:10
std::optional< std::vector< std::byte > > loadBinaryFile(std::filesystem::path path)
Definition file.cpp:28
std::optional< std::string > loadTextFile(std::filesystem::path path)
Definition file.cpp:5