| 116 | } |
| 117 | |
| 118 | std::string CCFileUtils::getFileString(const char* pszFilePath) |
| 119 | { |
| 120 | std::string data; |
| 121 | |
| 122 | unsigned long pSize = 0; |
| 123 | unsigned char* pData = this->getFileData(pszFilePath, "rb", &pSize); |
| 124 | |
| 125 | if (pSize > 0) |
| 126 | { |
| 127 | data.resize(pSize); |
| 128 | memcpy(&data[0], pData, pSize); |
| 129 | } |
| 130 | return data; |
| 131 | } |
| 132 | |
| 133 | std::string CCFileUtils::getNewFilename(const std::string& pszFileName) |
| 134 | { |
no test coverage detected