Path.writeBytes

void writeBytes(const(ubyte)[] content, bool atomic = false) const

Writes bytes to the file (overwrites). Supports optional atomic replacement.

Parameters

contentThe byte array to write.
atomicIf true, write atomically using a temporary file and rename.