Files

7 lines
123 B
Python

from pathlib import Path
def read_text_file(path: str | Path) -> str:
return Path(path).read_text(encoding="utf-8")