APIClassesTextFileReaderSur cette pageClass: TextFileReaderRead a .txt file Implements BaseReader Constructors constructor • new TextFileReader() Methods loadData ▸ loadData(file, fs?): Promise<Document<Metadata>[]> Parameters NameTypefilestringfsCompleteFileSystem Returns Promise<Document<Metadata>[]> Implementation of BaseReader.loadData Defined in packages/core/src/readers/SimpleDirectoryReader.ts:29