Files
LlamaIndexTS/apps/docs/docs/api/classes/TextFileReader.md
T
2023-07-24 14:47:49 -07:00

862 B

id, title, sidebar_label, sidebar_position, custom_edit_url
id title sidebar_label sidebar_position custom_edit_url
TextFileReader Class: TextFileReader TextFileReader 0 null

Read a .txt file

Implements

Constructors

constructor

new TextFileReader()

Methods

loadData

loadData(file, fs?): Promise<Document[]>

Parameters

Name Type
file string
fs CompleteFileSystem

Returns

Promise<Document[]>

Implementation of

BaseReader.loadData

Defined in

readers/SimpleDirectoryReader.ts:12