#pragma once namespace Util { // Get the size of a file. size_t FileSize(const std::string& filename); size_t FileSize(const std::wstring& filename); size_t FileSize(const wchar_t* filename); // Check whenever the file exists bool FileExists(const std::string& filename); bool FileExists(const std::wstring& filename); bool FileExists(const wchar_t* filename); // Load data from a file std::vector FileLoad(const std::string& filename); std::vector FileLoad(const std::wstring& filename); std::vector FileLoad(const wchar_t* filename); // Save data to file bool FileSave(const std::string& filename, std::vector & data); bool FileSave(const std::wstring& filename, std::vector& data); bool FileSave(const wchar_t* filename, std::vector& data); void SplitPath(const char* _Path, char* _Drive, char* _Dir, char* _Filename, char* _Ext); }