I want to execute another program within C code. For example, I want to execute a command
./foo 1 2 3
foo
is the program which exists in the same folder, and 1 2 3
are arguments.
foo
program creates a file which will be used in my code.
How do I do this?
How about like this: