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

# LSMMapWriteToStream(_:_:_:_:)

Writes information about a map or text to a stream in text form.

## Declaration

```swift
func LSMMapWriteToStream(_ mapref: LSMMap, _ textref: LSMText?, _ stream: CFWriteStream, _ options: CFOptionFlags) -> OSStatus
```

## See Also

### Loading and Saving a Map

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