let say i have a file
0 sandy a
1 billy b
2 tom c
3 tiffany d
4 tommy e
struct student for the example
{
string person
int studnetId
char grade
}
student class[5]
im working on a project this isnt the text file i just need someone to explain getline to me and im also using a struct that an array how would i grab only the names if i wanted to because im confused on that part
Read all characters until the delimiter or end of file is reached. Notice that the delimiter is removed from the stream (while the operator>> does not).