@classmethod<EOL><INDENT>def from_file(cls, path):<DEDENT>
with open(path, '<STR_LIT:r>', errors='<STR_LIT:replace>') as f:<EOL><INDENT>return cls(f.read())<EOL><DEDENT>
Create a text from a file.

Args:
    path (str): The file path.