# Записать текстовый файл

![](/files/pgdYsvNf3uGwhfnCi5jG)

Этот шаблон этапа открывает указанный текстовый файл любого формата и перезаписывает в него текст.

ВНИМАНИЕ! Если в текстовом файле была до этого какая-либо информация, она будет стерта и заменена на указанную в шаблоне.

Шаблон имеет следующие параметры:

* Имя файла. Полный путь до файла. Для удобства и наглядности указания пути, нажмите кнопку "Выбрать файл". Откроется проводник и можно легко найти нужный вам файл.

![](/files/jh0FCgSYgFTQS4JGIY2B)

* Текст. Информация, которая будет внесена в файл.


---

# 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.onerpa.ru/rpa-platforma-onerpa/shablony-etapov/shablony-etapov-raboty-s-failovoi-sistemoi/zapisat-tekstovyi-fail.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.
