why can't I use cinRef.getline()?

I have to read a name from a csv file using this method. Is there a reason why i cant just use cinRef.getline() or am I calling the getline method incorrectly?
unknown.png
unknown.png
Was this page helpful?