I am writing a program to generate random numbers, output them to files based on if they are odd, even, or negative.I am then supposed to use an ifstream to get them back and display them to the terminal.
The first part, using the ostream, operates correctly, and I get rewritten files every time I execute. But the input of chars does not work. Do you guys have any insight on this? I've tried both the .get() function and the extraction<< operators, both of which leave a blank terminal.