1
0
Fork 0
x64dbg/src/dbg/filehelper.h

16 lines
572 B
C++

#ifndef _FILEREADER_H
#define _FILEREADER_H
#include "_global.h"
class FileHelper
{
public:
static bool ReadAllData(const String & fileName, std::vector<unsigned char> & content);
static bool WriteAllData(const String & fileName, const void* data, size_t size);
static bool ReadAllText(const String & fileName, String & content);
static bool WriteAllText(const String & fileName, const String & content);
static bool ReadAllLines(const String & fileName, std::vector<String> & lines, bool keepEmpty = false);
};
#endif //_FILEREADER_H