It seems that when I open a file to read it and then read it string by string, the second time seems to not appear as the value it is even though when I print it out it is what it's supposed to be.
My program is going to read in text from a file and then store it for later use. It's a text rpg (wanted to make something simple yet extendable), if anyone wanted to know. The attached code is the place where the problem lies. To make it work, all you need to do is have a subdirectory from the compiled program called "worlds" and have main.world (a simple .txt file with a renamed extension, done in notepad) with 2 lines:
Classes:
Fighter
that's all it reads so far, because when I tested even that simple bit it started giving me crap.
The output it gives me:
Read 'classes:'
Read 'Fighter'
Main.world is not in the correct format.
Correct this yourself or get another copy from the distributor.
Press any key to end the program.
What it is reading are the correct things, yet it is telling me they are wrong. If I can do a program that reads BSP entities, I should be able to write this...
Or maybe not

.