Well, that is how an If statement should work, I was hoping for example code... I have it set to check the condition then assuming the condition is true, set bool isIf to true, then when it rolls through the code again it checks isIf, and if it is true, it checks if the line under the if is indented, if so, it works as an if should, if not it makes isIf false, so it doesn't check the line under that, the problem is that I don't know how to check if it is indented, using fstream.