# 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="https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FFgOPBDa9YQH85P7KJCOP%2Fimage.png?alt=media&#x26;token=92ea6e49-7f09-4d4d-80ce-26dfed04a28d" 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="https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FYj4j0yJZPj3uLgRJa6v0%2Fimage.png?alt=media&#x26;token=77599a0e-1e8f-4d26-a288-731b9a09d1f3" 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="https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FV1cjrLTXMuFkiQ0Kkekb%2Fimage.png?alt=media&#x26;token=622cb2d5-6fb6-4a32-975a-f1b4313fd67e" 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="https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2FUUtcGbLhCQ2dZBr3hkKo%2Fimage.png?alt=media&#x26;token=72d9d454-0c6d-4366-b5c0-2dbafa587b18" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://33973752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUOy4kHWrKkuqX5mhH7%2Fuploads%2Fturtu2qvIJLFdbveThxM%2Fimage.png?alt=media&#x26;token=f518c1d2-2348-4821-b986-759781f4e9e7" alt=""><figcaption></figcaption></figure>
