Files
QuestionProject/hy_qa_asset_backend/backend/app/utils/text_reader.py

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")