2017-01-20 14:36:52 +01:00
|
|
|
#pragma once
|
|
|
|
|
2017-01-19 22:23:59 +01:00
|
|
|
namespace Utils
|
|
|
|
{
|
|
|
|
namespace IO
|
|
|
|
{
|
2018-12-17 14:29:18 +01:00
|
|
|
bool FileExists(const std::string& file);
|
|
|
|
bool WriteFile(const std::string& file, const std::string& data, bool append = false);
|
|
|
|
bool ReadFile(const std::string& file, std::string* data);
|
|
|
|
std::string ReadFile(const std::string& file);
|
2021-12-04 18:34:19 +00:00
|
|
|
bool RemoveFile(const std::string& file);
|
2018-12-17 14:29:18 +01:00
|
|
|
size_t FileSize(const std::string& file);
|
|
|
|
bool CreateDir(const std::string& dir);
|
|
|
|
bool DirectoryExists(const std::string& file);
|
|
|
|
bool DirectoryIsEmpty(const std::string& file);
|
|
|
|
std::vector<std::string> ListFiles(const std::string& dir);
|
2017-01-19 22:23:59 +01:00
|
|
|
}
|
|
|
|
}
|