On the openfile line, are you telling the compiler that it should check the following:
fstream::in (or) fstream::out (or) fstream::app???
if so you are short 1 | for each instance (an OR command is ||)..
if not, then completely disregard all the above and kind of explain what you're trying to accomplish on that line.
Wrong. The | operator is NOT a boolean operator but instead is a bitwise OR which adds the values together. The op's use of the | operator is correct.