Use std::string instead of char* + size_t when reading files.