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

# write(to:)

## Declaration

```swift
func write(to url: URL) throws
```
