import shlex


def read_answer(filename):
    """ Returns the point from the .out file in the Data folder"""
    listPts = []

    filename = "Data/{}.out".format(filename)

    with open(filename, 'r') as data:
        answers = data.readline()
        answers = ",".join(shlex.split(answers))
        answers = answers.split(",")
        for i in answers:
            listPts.append(int(i))

    return listPts