# Changing save file name and directory

To change the file name of your save and load file, use this method in your main class      &#x20;

{% code overflow="wrap" lineNumbers="true" %}

```java
String filename;
File filedirectory;
DynamicHUD.setFilename(filename);
DynamicHUD.setFileDirectory(filedirectory);
```

{% endcode %}

The default file name is *`widgets.nbt`* and file directory is

> {% code overflow="wrap" %}
>
> ```java
> FabricLoader.getInstance().getConfigDir().toFile()
> ```
>
> {% endcode %}


---

# 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://tanishisherewith.gitbook.io/archived-legacy-dynamichud/saving-and-loading/changing-save-file-name-and-directory.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.
