If the target file already exists, it is overwritten. It is not first truncated to zero bytes.
If the target file does not exist, it is created.
public void WriteAllBytes(string path, byte[] bytes) { using (var stream = OpenWrite(path)) { stream.Write(bytes, 0, bytes.Length); } }