I have a program that is supposed to read from a file, parse it, then output the results. I can't get getline to work, and I've tried every variation I can find, and everything says that they should be working, this is the code:
while (fileBefore >> preparse) {
unparsed.push_back(preparse);
}
The output I am receiving is just the first line of my text file, and it is supposed to read all lines. Thanks!