Function TRAP::FileSystem::WriteTextFile#

Function Documentation#

bool TRAP::FileSystem::WriteTextFile(const std::filesystem::path &path, std::string_view text, WriteMode mode = WriteMode::Overwrite)#

Write the given text to the given file path.

Parameters:
  • path – File path.

  • text – Text to be written.

  • mode – Write mode to use. Default: WriteMode::Overwrite.

Returns:

True if file has been written successfully, false otherwise.