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/llamaindex/src/readers/type.ts:17
loadDataAsContent()
loadDataAsContent(
fileContent
):Promise
<Document
<Metadata
>[]>
Parameters
• fileContent: Buffer