# Write

> Writes text to the StringBuilder object.

## Definition

* **Type:** Method
* **Namespace:** [Unity.SmartStrings.Core.Output](/engine/6000.7/script-reference/unity/smartstrings/core/output.md)
* **Assembly:** UnityEngine.SmartStringsModule

## Write(string, IFormattingInfo)

Writes text to the StringBuilder object.

```csharp
public void Write(string text, IFormattingInfo formattingInfo = null)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Text to write.**** (\[IFormattingInfo]\(/engine/6000.7/script-reference/unity/smartstrings/core/extensions/iformattinginfo)): This parameter from [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) will not be used here.

## Write(ReadOnlySpan\<char>, IFormattingInfo)

Writes text to the StringBuilder object.

```csharp
public void Write(ReadOnlySpan<char> text, IFormattingInfo formattingInfo = null)
```

### Parameters

**** (\[ReadOnlySpan\<char>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): Characters to write.**** (\[IFormattingInfo]\(/engine/6000.7/script-reference/unity/smartstrings/core/extensions/iformattinginfo)): This parameter from [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) will not be used here.

## Write(char, int, IFormattingInfo)

Writes a character repeated `count` times to the StringBuilder object.

```csharp
public void Write(char value, int count, IFormattingInfo formattingInfo = null)
```

### Parameters

**** (\[char]\(https\://learn.microsoft.com/dotnet/api/system.char)): Character to write.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of times to write `value`.**** (\[IFormattingInfo]\(/engine/6000.7/script-reference/unity/smartstrings/core/extensions/iformattinginfo)): This parameter from [IOutput](/engine/6000.7/script-reference/unity/smartstrings/core/output/ioutput.md) will not be used here.
