def parse_file(file_path, delimiter):
    """
    This function parses the file given and produces as output a list of the
    grades according to the delimiter.

    :param file_path: the path of the file with the grades
    :param delimiter: the delimiter used in order to seperate the grades in the
    file

    :return file_grades_list: the list of grades
    """
    with open(file_path, 'r') as file:
        content = file.read()
        file_grades_list = content.split(delimiter)

    return file_grades_list