I'm using system() to run an external program with parameters. I want the code to wait until the program closes and then proceed with the rest of the code.
Right now, the command to run the program is in a loop, so it keeps opening more of the same program.
thanks in advance.