I am having problems with a program I am trying to write. I am using the getline() method to read lines of a file. It functions correctly until a blank line is encountered. Then it stops executing. Is there a way I can catch an exception or something to skip the blank line and continue on the other side?
Here is the section of my code causing the problems. I'm positive it's the getline() statement that's causing the problem. It can't get an empty line.
I'd appreciate some help. It's been a long time since I've used c++. Been more of a java junkie for some time.Code:while(end != true) { getline(sceneFile, fileBuffer); tokens = tokenizer(fileBuffer, tokens);
Thanks,
Stephen