read

Engine.read_plaintext(file_path)
Creates a plaintext by reading data from a file.
  • Input:
    • file_path: str or pathlib.Path
      • Can be an absolute or relative path.
  • Output:
    • Plaintext

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine()
plaintext = engine.read_plaintext("/opt/desilo/plaintext")

Using a relative path

from desilofhe import Engine

engine = Engine()
plaintext = engine.read_plaintext("plaintext")