# Append line

![](/files/7yGvZwRfFhIX1hYvk6Mc)

Element that adds a string to the end of the file.

![](/files/y6Ine1ulSYee1Diwdyi8)

Properties

\- Coding: \[String] Encoding used in a file (utf-8) '<https://docs.microsoft.com/ru-ru/dotnet/api/system.text.encoding>'

\- Path to a file\*: \[String] Path to a file for recording (c:\folder\file.txt)

\- Text\*: \[String] Text of a recordable string

```
C#
System.IO.File.AppendAllLines(@"C:\text.txt", new List<string>() { "New text" });
System.IO.File.AppendAllText(@"C:\text.txt", "New text");

Python
System.IO.File.AppendAllLines("C:\\text.txt", List[String](["New text"]))
System.IO.File.AppendAllText("C:\\text.txt", "New text")

JavaScript
var host = new _lib.Microsoft.ClearScript.HostFunctions();
var items = host.newObj(_lib.System.Collections.Generic.List(_lib.System.String));
items.Add("New text");
_lib.System.IO.File.AppendAllLines("C:\\text.txt", items);
_lib.System.IO.File.AppendAllText("C:\\text.txt", "New text");
```


---

# 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://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/els_files/el_files_append.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.
