---
title: "write(_:to:overwrite:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/tabularestimator/write(_:to:overwrite:)"
---

# write(_:to:overwrite:)

Writes the encoded transformer to a file.

## Declaration

```swift
func write(_ transformer: Self.Transformer, to url: URL, overwrite: Bool = true) throws
```

## Parameters

- `transformer`: A transformer created by this estimator.
- `url`: A file URL.
- `overwrite`: A Boolean value indicating whether to overwrite existing files.

## See Also

### Reading and writing

- [read(from:)](createmlcomponents/tabularestimator/read(from:).md)
- [Transformer](createmlcomponents/tabularestimator/transformer.md)
