blob: 3d04e6210c89c847b0b3d818af4bd02c758c0024 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <cstdio>
#include <filesystem>
namespace Utils {
enum IoMode {
Read,
WriteTruncate,
WriteAppend,
};
FILE* OpenCstdioFile(const std::filesystem::path& path, IoMode mode, bool binary = false);
FILE* OpenCstdioFile(const char* path, IoMode mode, bool binary = false);
} // namespace Utils
|