---
title: "Read Text File"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/os/readtextfile
markdown: https://docs.nodetool.ai/nodes/lib/os/readtextfile.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/os/readtextfile.md
---

# Read Text File

**Type:** `lib.os.ReadTextFile`

**Namespace:** `lib.os`

## Description

Read a text file from the workspace.
    os, file, read, text

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| path | `str` | Relative path to file within workspace | `` |
| encoding | `str` | Text encoding (utf-8, ascii, etc.) | `utf-8` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |

## Related Nodes

Browse other nodes in the [lib.os](./) namespace.
