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

# write(_:)

Appends the given string to the stream.

## Declaration

```swift
mutating func write(_ string: String)
```
