EDIT: I fixed it. I shouldn't program so late at night. I used "&& instead of "||" for the previous while loop.
I am trying to turn a list of elements into an XML format document. Weird bug is that the things inside "while(in >= 65 && in <= 122)" doesn't output to output file and I can't figure out what. I tried flushing, that doesn't work. It's not about output buffer because if you put "ostream << "Test"; " right before the while loop, it outputs. For some reason it doesn't output to file inside the for loop.
I am wondering if the "while(in >= 65 && in <= 122)" is not detecting certain invisible characters. I copied and pasted the elements from a table online.
All I know is that the program enters the while loop, but never outputs to file. The first while loop does though.
The input and output files are regular .txt format with Unix/Linux line ending.