File size: 211 Bytes
9f911b3
 
 
 
 
 
 
1
2
3
4
5
6
7
8
"""Plain text file extraction."""


def extract(file_path: str) -> str:
    """Read a plain text file as UTF-8."""
    with open(file_path, "r", encoding="utf-8", errors="replace") as f:
        return f.read()