# Sandbox.BaseFileSystem.WriteAllBytes

```csharp
void WriteAllBytes(string path, byte[] contents)
```

Write the contents to the path. The file will be over-written if the file exists

### Parameters

- `path` (`string`)
- `contents` (`byte[]`)

Declared in [Sandbox.BaseFileSystem](/api/Sandbox.BaseFileSystem).
Assembly: `Sandbox.Filesystem`.
