# File Output

Loadium allows you to generate custom files, download and access them in your JMeter tests using its "Custom Logging" feature.

<figure><img src="/files/hZM7PXjYRdAVxXsny2eK" alt=""><figcaption></figcaption></figure>

You can use custom libraries (such as java.io.File) to generate files.

For example, we have a Groovy script for creating a `.txt` file for logging, as shown below:

<figure><img src="/files/X8o11lKNrabJuw9fY7gq" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note: As mentioned above, output path of your custom file must be set as "useroutput/myFileName" in order to access your file.**
{% endhint %}

Run the test for which you want to get the file outputs and wait for the test to finish. To verify that your file has been successfully written, check the **JMeter.log** window in the **Logs** tab.

<figure><img src="/files/ENcL2XflufmmrYhMG6re" alt=""><figcaption></figcaption></figure>

Once your test is finished, go to the **Logs** tab on the test report page and click the "Download Main Folder" button to download your main test folder.

<figure><img src="/files/NkmNLTiSRtI0vXaAJ025" alt=""><figcaption></figcaption></figure>

Now you can access the output files of your test simply by unzipping specified output file.

<figure><img src="/files/uhKhGvF02NGiRTIgFgN4" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.loadium.com/test-settings/file-output.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
