> For the complete documentation index, see [llms.txt](https://utca.knowledgator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utca.knowledgator.com/datasources/plain-text.md).

# Plain text

Actions for handling plain text files

## Module: [implementation](/framework-structure.md#implementation).datasources.plain\_text

***

***

## <mark style="color:green;">PlainTextRead</mark>

Read plain text file. Subclass of [**Action**](/core/action.md)**.** Type of [**Action**](/core/action.md)**\[Dict\[str, Any], Dict\[str, Any]]**

***

### <mark style="color:blue;">execute</mark>

#### Arguments:

* <mark style="color:orange;">**input\_data**</mark>**&#x20;(Any):**\
  Expected keys:
  * <mark style="color:red;">**"path\_to\_file"**</mark>**&#x20;(str):** Path to plain text file;

#### Returns:

* **Dict\[str, Any]:** \
  Expected keys:&#x20;
  * <mark style="color:red;">**"text"**</mark>**&#x20;(str): Text;**

***

***

***

## <mark style="color:green;">PlainTextWrite</mark>

Write plain text file. Subclass of [**Action**](/core/action.md)**.** Type of [**Action**](/core/action.md)**\[Dict\[str, Any], None]**

***

### <mark style="color:blue;">execute</mark>

#### Arguments:

* <mark style="color:orange;">**input\_data**</mark>**&#x20;(Any):**\
  Expected keys:
  * <mark style="color:red;">**"path\_to\_file"**</mark>**&#x20;(str):** Path to plain text file;
  * <mark style="color:red;">**"text"**</mark>**&#x20;(str):** Text to write;

***

***

***

## <mark style="color:green;">PlainTextAppend</mark>

Append to plain text file. Subclass of [**Action**](/core/action.md)**.** Type of [**Action**](/core/action.md)**\[Dict\[str, Any], None]**

***

### <mark style="color:blue;">execute</mark>

#### Arguments:

* <mark style="color:orange;">**input\_data**</mark>**&#x20;(Any):**\
  Expected keys:
  * <mark style="color:red;">**"path\_to\_file"**</mark>**&#x20;(str):** Path to plain text file;
  * <mark style="color:red;">**"text"**</mark>**&#x20;(str):** Text to append;

***

***
