Reading special characters off a file
Hello to all, kinda new here, but here goes
So I was making a multiple choice quiz program, that reads multiple choice questions off of a file, but I have encountered a problem.
While reading " character or ' character or the rest of those special character that are supposed to be greeted by hackslash, I get some kind of a very weird character when the program runs and display the data read.
So here is my question.
Is there any way I can use getline or some other command to make sure that when it reads the data it actually displays a correct character instead of some weird unknown square or something else?
I have tried everything, but to no avail. Any help is appreciated.
Thanks a lot for your help in advance.