mmmmmmmmmmmmmmmm
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdio>
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
|
||||
@@ -18,6 +19,22 @@ namespace anm2ed::util::filesystem
|
||||
|
||||
FILE* open(const std::filesystem::path&, const char*);
|
||||
|
||||
class File
|
||||
{
|
||||
public:
|
||||
File() = default;
|
||||
File(const std::filesystem::path&, const char* mode);
|
||||
~File();
|
||||
|
||||
bool open(const std::filesystem::path&, const char* mode);
|
||||
void close();
|
||||
FILE* get() const;
|
||||
explicit operator bool() const;
|
||||
|
||||
private:
|
||||
FILE* handle{};
|
||||
};
|
||||
|
||||
class WorkingDirectory
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user