mmmmmmmmmmmmmmmm

This commit is contained in:
2025-12-13 22:33:50 -05:00
parent c23179c134
commit b9b0fb9974
5 changed files with 89 additions and 24 deletions
+17
View File
@@ -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: