This is the error I'm getting:
error: 'oufile' was not declared in this scope
I don't understand how to fix this. I declared 'outfile' before the main program, so shouldn't it be declared for the entire program? How do I fix this? Any help would be greatly appreciated. ( I put the line the error is on in bold)