I actually have two issues with the program, one that is my fault and the other is just an assignment problem.
The following is my code for checking an expression if the curly brackets, brackets, and parentheses are balanced. The code runs but I'm having an issue with the parentheses. It keeps telling me that they are not balanced when I clearly put a ( and a ).
The other issue I'm having is that my professor has changed the assignment (less than 24 hours before it is due...ugh) for us to instead have it open a file that the user enters in, read the file that the user selected, run the code for if it is balanced, and close the file. I'd greatly appreciate code to see how to fix the first problem and add the second problem to the program. Thank you so much for any help you can offer!