> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slai.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Outputs

> Read and write files from inside a Beam environment

You may want to create temporary files or directories for your Beam tasks. Beam includes **Outputs** which let you create files or directories when your function is invoked.

You can add **Output** to the same file with your `Beam.App()` definition.

<Tip>
  Outputs are ideal for cases where you don't need to persist data between tasks.

  If you'd like to persist your data between tasks (meaning you can stop a Beam task, resume it, and your data will still exist), you should use a [Persistent Volume](/beam/data/persistent-volumes) instead.
</Tip>

For example, if you wanted to save images generated during a function call, you could define an output like this:

```python theme={null}
app.Output.File(path="output.png", name="myimage")
```

You can also create directories, through the `Output.Dir()` method:

```python theme={null}
app.Output.Dir(path="images", name="generated_images")
```

### Accessing Outputs

You can download files created during each function execution by logging into the dashboard, finding your deployment, and clicking on the latest task.

<img src="https://mintcdn.com/slai-docs/0GTBstnyDK-8Z9OV/img/beam/getting-started/download-artifact.png?fit=max&auto=format&n=0GTBstnyDK-8Z9OV&q=85&s=e4e488349910d46b3414b22d2ce6a55b" alt="Download-Artifacts" width="1326" height="658" data-path="img/beam/getting-started/download-artifact.png" />
