#includeIn the above example, we declare a string object `fileName` with the value "example.txt". We then use the `c_str()` function to obtain a C-style string pointer to the contents of the string object. Finally, we output the resulting C string using `std::cout`. This function is part of the C++ Standard Library and is included in the `#include int main() { std::string fileName = "example.txt"; const char* cstr = fileName.c_str(); std::cout << "File name (C string): " << cstr << std::endl; return 0; }