what does getline do in this case:
suppose i have a file of ppl who have borrowed cd's like this
bubba
2 //number of cd's
cd1
cd2
foo
0
anothername
1
cd3
what if i use code like this which goes in a loop
what will happen when it reaches foo, who has no cd's under him or bubba who has just 2 cd taken???Code:getline(infile, string nName); getline(infile, string cdname); getline(infile, int number)