---
title: "write(to:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/character/write(to:)"
---

# write(to:)

Writes the character into the given output stream.

## Declaration

```swift
func write<Target>(to target: inout Target) where Target : TextOutputStream
```

## Parameters

- `target`: An output stream.
