Pular para o conteúdo principal

Class: TextFileReader

Read a .txt file

Implements

Constructors

constructor

new TextFileReader(): TextFileReader

Returns

TextFileReader

Methods

loadData

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

Parameters

NameTypeDefault value
filestring | URLundefined
fsCompleteFileSystemdefaultFS

Returns

Promise<Document<Metadata>[]>

Implementation of

BaseReader.loadData

Defined in

packages/core/src/readers/TextFileReader.ts:11