# Import text

Node type `browser_importText`

## What it does

Read a local text file into the workflow.

## Desktop client configuration

![Import text configuration in the desktop client](/assets/import-text.7217a452337663f59e58f7eee701315eff1347a83655f4cb6fc60628b775736b.0538f3a9.webp)

Captured in the English interface of MoreLogin Desktop V2.73.101.

## Inputs

These fields belong in `data.browserUi.inputs`.

| Field | Type or values | Schema required | Execution default | Description and bounds |
|  --- | --- | --- | --- | --- |
| `path` | `string` | No | — | TXT file |


## Mode requirements and limits

- path is an authorized .txt file; its content is returned line by line. Leading and trailing whitespace is trimmed from each line, and empty lines are dropped.
- Validation code `RPA_NODE_INPUT_INVALID`


## Input references

| Field | Allowed forms |
|  --- | --- |
| `path` | `literal`, `template` |


## Outputs

| Output field | Type or values |
|  --- | --- |
| `lines` | array<`string`> |
| `lineCount` | `number` |


Reference published fields as `${nodeId.data.field}`.

## JSON example

A complete node object for a workflow's `nodes` array or another node's `blocks`. Replace the local paths with absolute paths on your machine.

```json
{
  "id": "load_keywords",
  "type": "browser_importText",
  "data": {
    "title": "Load the keyword list",
    "browserAction": "importText",
    "browserUi": {
      "inputs": {
        "path": "/Users/example/Documents/keywords.txt"
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}
```

[Back to the node catalog](/browser-rpa/nodes)