Hi, does anyone know if you can get getline to read to ',' or the end of the line...
so for example:
Input:
1,s,3a,find
2,3b,g,go
so you get an output of this:Code:while(fin.peek!=EOF) { char temp[100]; fin.getline(temp,100, ',' | '\n'); cout<<temp<<endl; }
1
s
3a
find
etc...
does anyone know how to do this?
Thanks