Function TRAP::FileSystem::WriteFile#
Function Documentation#
-
bool TRAP::FileSystem::WriteFile(const std::filesystem::path &path, std::span<const u8> buffer, WriteMode mode = WriteMode::Overwrite)#
Write the given data as binary to the given file path.
- Parameters:
path – File path.
buffer – Data to be written.
mode – Write mode to use. Default: WriteMode::Overwrite.
- Returns:
True if file has been written successfully, false otherwise.