def _read_file(filepath):
    """ Returns all content of a textfile as a single string.

    :param str filepath: filepath of file to read contents from

    :return: contents of file with given filepath
    :rtype: str
    """
    with open(filepath, "r") as f:
        s = f.read()
    return s