e3b2539986
The file stream open functions have supported std::string overloads since C++11, so we don't need to use c_str() here. Same behavior, less code.