iw4x-client/src/Utils/IO.hpp

16 lines
395 B
C++
Raw Normal View History

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);
size_t FileSize(std::string file);
2017-01-19 16:23:59 -05:00
std::string ReadFile(std::string file);
bool CreateDirectory(std::string dir);
std::vector<std::string> ListFiles(std::string dir);
}
}