Q: std::string get_file_contents(const char *filename) { std::ifstream in(filename, std::ios::in | std::ios::binary); if (in) { std::string contents; , std::ios::end); contents.resize(in.tellg()); , std::ios::beg); ], contents.size()); in.close(); re…