2017-01-20 08:36:52 -05:00
|
|
|
#pragma once
|
|
|
|
|
2017-01-19 16:23:59 -05:00
|
|
|
namespace Utils
|
|
|
|
{
|
|
|
|
namespace IO
|
|
|
|
{
|
|
|
|
bool FileExists(std::string file);
|
2017-02-10 09:18:11 -05:00
|
|
|
bool WriteFile(std::string file, std::string data, bool append = false);
|
|
|
|
bool ReadFile(std::string file, std::string* data);
|
2017-01-19 16:23:59 -05:00
|
|
|
std::string ReadFile(std::string file);
|
2017-02-10 16:32:33 -05:00
|
|
|
size_t FileSize(std::string file);
|
2017-02-10 16:02:13 -05:00
|
|
|
bool CreateDir(std::string dir);
|
2017-03-15 14:30:15 -04:00
|
|
|
bool DirectoryExists(std::string file);
|
|
|
|
bool DirectoryIsEmpty(std::string file);
|
2017-01-19 16:23:59 -05:00
|
|
|
std::vector<std::string> ListFiles(std::string dir);
|
|
|
|
}
|
|
|
|
}
|