Przejdź do głównej zawartości

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
filestringundefined
fsCompleteFileSystemdefaultFS

Returns

Promise<Document<Metadata>[]>

Implementation of

BaseReader.loadData

Defined in

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