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