Function Util::write_file

Function Util::write_file#

Function Documentation#

void Util::write_file(const std::string &fpath, const std::string &content)#

Writes a given string to a given file path.

Parameters:
  • fpath – the path of the file to write to

  • content – the content to write

Throws:

invalid_argument – if file is not writable