Function write_file

Function Documentation

void write_file(const std::string &filename, const std::string &data)

Writes a string of data to a file.

Parameters:
  • filename – The path to the file to write.

  • data – The string containing the data to write.