TextFileReader
General
TextFileReader és una classe en Aspose.Words per a Python.
Llegeix fitxers de text sencer (.txt) i dóna un paràgraf per línia.
Mètodes
| Signature | Description |
|---|---|
__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.Document | Build a light_document_model.Document from the loaded text. |