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

# file:write — Write file

FILE:WRITE writes content to a file.

If the file does not exist, it will implicitly be created. Otherwise, the existing file is overwritten.

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

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| filename | string |  | Filename/URL |

### Children
- (none)

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

### Result
- (none documented)

### Examples

```xml
<file:write filename="./test/ixml.inc">iXML</file:write>

<output>
	<file:read filename="./test/ixml.inc"/>
</output>

<!-- iXML -->
```
