def load_file(file):
    """Loads text from a file

    Args:
        **file (str)**: File path and name

    Returns:
        The text read from the requested file
    """
    text = ''
    if file:
        with open(file, 'r') as file:
            text = file.read()
            file.close()
        return text
    else:
        raise ValueError('file cannot be None or empty')