@staticmethod<EOL><INDENT>def fromFile(path_or_buffer):<DEDENT>
return TOC.fromLatex(open(path_or_buffer).read() <EOL>if isinstance(path_or_buffer, str)<EOL>else path_or_buffer)<EOL>
Creates abstraction using path to file

        :param str path_or_buffer: path to tex file or buffer
        :return: TreeOfContents object