---
title: "write(toFile:metadata:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mlhandposeclassifier/write(tofile:metadata:)"
---

# write(toFile:metadata:)

Exports the hand pose classifier as a Core ML model file.

## Declaration

```swift
func write(toFile path: String, metadata: MLModelMetadata? = nil) throws
```

## Parameters

- `path`: A file-system path.
- `metadata`: The model’s description, author, version, and license information.

## See Also

### Saving a hand pose classifier

- [write(to:metadata:)](createml/mlhandposeclassifier/write(to:metadata:).md)
