# Write(Stream)

> Writes a binary representation of the index on a stream.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

> **Warning:**
>
> **Deprecated.** This method is no longer supported. The content of the indexer is automatically saved on disk.

```csharp
public void Write(Stream stream)
```

### Parameters

**** (\[Stream]\(https\://learn.microsoft.com/dotnet/api/system.io.stream)): Stream to write the index.
