def read_data(input_file):
    """Read all lines from the input file."""
    try:
        with open(input_file, 'r') as infile:
            return infile.read().splitlines()
    except (FileNotFoundError, PermissionError, FileExistsError) as error:
        raise ValueError(error)