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

# write(to:)

Saves the custom catalog to a local file.

## Declaration

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

## Parameters

- `destinationURL`: A URL for the saved custom catalog file.

## Discussion

Discussion If destinationURL is a directory, the system creates a Signatures.shazamcatalog file.

## See Also

### Loading and saving a custom catalog

- [add(from:)](shazamkit/shcustomcatalog/add(from:).md)
