---
title: "LSMMapWriteToURL(_:_:_:)"
framework: Latent Semantic Mapping
role: symbol
role_heading: Function
path: "latentsemanticmapping/lsmmapwritetourl(_:_:_:)"
---

# LSMMapWriteToURL(_:_:_:)

Compiles the map, if necessary, and stores it into the specified file.

## Declaration

```swift
func LSMMapWriteToURL(_ mapref: LSMMap, _ file: CFURL, _ flags: CFOptionFlags) -> OSStatus
```

## See Also

### Loading and Saving a Map

- [LSMMapCreateFromURL(_:_:_:)](latentsemanticmapping/lsmmapcreatefromurl(_:_:_:).md)
- [LSMMapWriteToStream(_:_:_:_:)](latentsemanticmapping/lsmmapwritetostream(_:_:_:_:).md)
- [Storage Flags](latentsemanticmapping/storage-flags.md)
