import codecs


def text_from(path, encoding="utf-8"):
    """
    Return the text from a file.

    :param path: file path string
    :param encoding: file encoding
    """
    with codecs.open(path, "r", encoding) as fp:
        return fp.read()