Adds the funciton to save the student list to file.