unlogic
Loading...
Searching...
No Matches
io.cpp
Go to the documentation of this file.
1#include <fstream>
2#include "io.h"
3
4std::string unlogic::load_file(std::filesystem::path const &path)
5{
6 std::ifstream fp(path, std::ios::in | std::ios::binary);
7 return {std::istreambuf_iterator<char>{fp}, std::istreambuf_iterator<char>{}};
8}
std::string load_file(std::filesystem::path const &path)
Definition io.cpp:4