# Append line

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-16fe17ef234f0a75f66653bd0d591d691075f801%2Fimage%20\(47\).png?alt=media)

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

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-ec36e17eb9d9a8310ebc1f962fe9932b48aa86d5%2F1%20\(123\).png?alt=media)

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");
```
