Class: TextFileReader
Read a .txt file
Extends
Constructors
new TextFileReader()
new TextFileReader():
TextFileReader
Returns
Inherited from
Methods
loadData()
Parameters
• filePath: string
Returns
Promise
<Document
<Metadata
>[]>
Inherited from
Source
packages/core/src/readers/type.ts:17
loadDataAsContent()
loadDataAsContent(
fileContent
):Promise
<Document
<Metadata
>[]>
Parameters
• fileContent: Buffer
Returns
Promise
<Document
<Metadata
>[]>