# 读取文件 (Read file)

这是一个重要的node。要输入您的数据，请上传一个文本文件。您可以选择逐行排列数据或用特殊字符分隔数据。如果选择后一个选项，您还可以指定脚本是否应随机选择某些行或按顺序读取每行并在处理时删除它们。或者，您可以将这些选项留空，以便按顺序处理每行而不删除，请选择上面的适当选项。在设置变量以map value，请先写入数据的第一个值，然后写入第二个值，依此类推。例如，如果您有 <Abc123@gmail.com>|abc123|<Xyz456@gmail.com>，则格式应为 email|pass|recovery mail。分别写入每一行，如下所示：

<figure><img src="/files/0B0UEzBEj1VcOgsADufx" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="258">参数</th><th>说明</th></tr></thead><tbody><tr><td>Path to the file</td><td>要读取的txt文件链接</td></tr><tr><td>Type: Line by line</td><td>从上到下逐行读取数据。读取任何一行后，从文件中删除该行</td></tr><tr><td>Type: Line by line (with delimiter)</td><td>当您想要按行读取数据时，并且您的数据有分隔符来区分一行上的数据。</td></tr><tr><td>Type: Read all</td><td>读取文件中的所有数据并将其保存到变量中。</td></tr><tr><td>Random</td><td>如果选择随机，数据行将随机读取，读取后不会删除文件数据。</td></tr><tr><td>Delete line after read</td><td>读取后删除数据</td></tr><tr><td>Variables map value (Ordering by index)</td><td>如果您的数据由分隔符分隔，请在此处输入分隔符，并填写数据流每个元素对应的变量。</td></tr><tr><td>Output variable</td><td>将提取的元素保存为变量并输入变量名称</td></tr></tbody></table>


---

# 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://docs.hidemium.io/zi-dong-hua-yong-hu-shou-ce/shu-ju-data/du-qu-wen-jian-read-file.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.
