"How do I separate the student from the ID from the grade using getline?"
Go back to the beginning of the thread and read all the posts. Take notes and study what each post has to say. You might even want to print them all out. All the information you need to complete your program is in the posts.