# Sandbox.BaseFileSystem.ReadAllBytes

```csharp
System.Span<byte> ReadAllBytes(string path)
```

Read the contents of path and return it as a string

### Parameters

- `path` (`string`)

### Returns

`System.Span<byte>`

Declared in [Sandbox.BaseFileSystem](/api/Sandbox.BaseFileSystem).
Assembly: `Sandbox.Filesystem`.
