def load_file(file_path):
    """
    Loads and returns content into file.
    :param file_path: Path to the file.
    :return: Content of the file.
    """
    try:
        with open(file_path, 'r') as file:
            data = file.read()
    except IsADirectoryError:
        raise Exception("Reading file '{0}' not possible, because it's a directory.".format(file_path))
    except IOError:
        raise Exception("IOError while reading the '{0}' file.".format(file_path))
    return data