---
title: "write · RUAL Documentation"
description: "Generates or overwrites a file with the new content"
canonical: https://docs.rual.nl/block-types/files/file_create
language: en
---

# write

This block is part of the [`files`](https://docs.rual.nl/block-types/files) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Generates or overwrites a file with the new content

- flow `flow`

- file required `value` Name of the file within your assets, this could include the path like `public/export.xml`

- content required `value`

- encoding `value` Default `utf-8`

- flow `flow`

- success `condition`

- file `file`

- error `value`

| `file create` |
| --- |
| `file write` |

A typical wiring for [write](https://docs.rual.nl/block-types/files/file_create): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `file` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `content` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the write block: typical wiring for write.](https://docs.rual.nl/canvas-examples/file_create.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
