I wasn’t aware there was a two-liner in C++ to read an entire file into a std::string: stackoverflow.com/questions…