Pretty long but ok
Code:
getline(quizData, line);
while(line.compare("qend")!=0)
{
string assembler = "";
while(line.compare("end")!=0)
{
assembler.append(line);
assembler.append("\n");
getline(quizData, line);
}
question[i][b][0] = assembler;
getline(quizData, line);
question[i][b][1] = line;
b++;
getline(quizData, line);
}
Anyways I dunno if this makes any sense
But the problem is that when I use getline command and the file contains " character then it will not read correctly it and instead display squares and triangles.
I tried putting hackslash before the quotations marks in hopes that it will fix it, but instead it simply shows hackslash followed by a weird character.
Is there a way to read character by character and then put it together? I am at my wits end here.