TextFileReader

Overview

TextFileReader is a class in Aspose.Words for Python.

Reads plain-text (.txt) files and yields one Paragraph per line.

Methods

SignatureDescription
__init__()
load_file(filepath: Union[str, Path])Load a .txt file from filepath.
load_stream(stream: BinaryIO)Load from a binary stream.
load_bytes(data: bytes)Load from raw bytes.
to_light_document()ldm.DocumentBuild a light_document_model.Document from the loaded text.