> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/build/extract-from-file.md).

# 在 Duaer 里用 Extract from File 读出文件

在 Duaer 里，Extract from File 从 binary 上的文件读出 JSON 条目或文本。默认 Operation 是 Extract From CSV。
## 从 CSV 读出行

1. 先有一个带文件的 binary 字段，例如上一步 Convert to File 写出的 data。
2. 搜索 Extract from File，接到那个节点后面。
3. Operation 保持 Extract From CSV。
4. Input Binary Field 填 binary 字段名，例如 data。
5. 点执行此步骤。输出是表里的各行。

Operation 还可以是 Extract From HTML、Extract From ICS、Extract From JSON、Extract From ODS、Extract From PDF、Extract From RTF、Extract From Text File、Extract From XML、Extract From XLS、Extract From XLSX，以及 Move File to Base64 String。

含 binary 的输出不能钉住。见 [在 Duaer 里固定数据](/zh/data/data-pinning.md)。
## Questions

### Duaer 的 Extract from File 能直接读我桌面上的路径吗？

不能。它读的是条目 binary 里已经有的文件。要从本机磁盘读入，用自托管上的 Read/Write Files from Disk。

