# File Reader

{% tabs %}
{% tab title="Parâmetros" %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcZfR1MzmyJf9lfLWBkBaVh-4ukJ6voTuFm6fZvrDR8Zd51Zr_0SkLjj9RFlOBQOd_zgkszXTvT6x6dqYkDOiQn_UcnLpBLh3JqQH2Lc0v1WtcipKexzlpEzY2Bw8-k53OU1YVJ?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Parâmetros de configuração</p></figcaption></figure>

| Campo                  | Tipo           | Descrição                                                                                                                      |
| ---------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Descrição              | Campo de texto | Descrição visual do conector no editor de fluxos.                                                                              |
| Localização do arquivo | Campo de texto | Indicação da localização do arquivo dentro do storage do Workspace. Pode ser utilizado “/” como prefixo para caminho absoluto. |
| Encoding               | Seletor        | Define o tipo de codificação a ser usada para leitura do arquivo.                                                              |
| Output Path            | Campo de texto | Define o nome de um atributo que irá armazenar a saída de dados do conector dentro do objeto msg no contexto do fluxo atual.   |
| {% endtab %}           |                |                                                                                                                                |

{% tab title="Payload" %}

## Sucesso

A saída de dados pode variar de acordo com o encoding do seu arquivo, podendo retornar o arquivo lido em ISO-8859-1, binário ou em UTF-8.

<figure><img src="/files/FEhMpbPfMHQWjc9tsAuC" alt=""><figcaption><p>Sucesso na leitura de arquivos</p></figcaption></figure>

## Erro

Caso o caminho do arquivo tenha sido configurado errado ou não exista, o retorno será dado através dos logs no painel Live Debugger do seu fluxo, retornando `null`.

<figure><img src="/files/zHv11A7e4uuCTB9n8LHk" alt=""><figcaption><p>Erro na leitura de arquivos</p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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://docs.floui.io/guia/conectores/categorias/manipulacao-de-arquivos/file-reader.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.
