---
title: "temp:write — Write temporary data file"
description: "iXML command temp:write: Write temporary data file."
canonical_url: "https://www.zeyos.com/ixml/ref/temp-write"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/temp-write.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# temp:write — Write temporary data file

TEMP:WRITE writes content to a temporary data file and returns its identifier.

If the identifier is omitted, it will implicitly be generated. If the temporary data file does not exist, it will implicitly be created. Otherwise, the existing temporary data file is overwritten.

TEMP:WRITE is the complement of the TEMP:READ operation.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |
| var_struct | var |  | Variable name for structural value |
| id | string | (new) | Identifier |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: string

### Examples

```xml
<temp:write var="id">iXML</temp:write>

<output>
	<temp:read id="$id"/>
</output>

<!-- iXML -->
```
