# Editor.SceneFolder.WriteFile

```csharp
string WriteFile(string filename, byte[] data)
```

Write a file to the path relative to the scene folder, return the path relative to the root.

### Parameters

- `filename` (`string`)
- `data` (`byte[]`)

### Returns

`string`

Declared in [Editor.SceneFolder](/api/Editor.SceneFolder).
Assembly: `Sandbox.Engine`.
