Quote:Original post by the_cyberlord
*** Source Snippet Removed ***
this code gives these errors:
*** Source Snippet Removed ***
And BTW, you can't enter multiple separators like McCloud said, it gives an error. So what do I do???
The multiple separators is for find_first_of, getline only wants one at a time. If you have a set format [so that you know which separator is next at any given time], getline should work. I've never figured out a solution to the problem where the odd separators can occur anywhere except to parse a string rather than a file. Traditionally, I've used strtok, but that function is pure, unadulterated, evil. Don't even consider that option.
I suspect that fixing the newline issue ['/n' rather than '\n'] will fix the problem you're having. The compiler appears confused as to what type '/n' is, but since its not a type at all that's not surprising.
CM