Let's say I want to do a routine to automate the process of compiling a program. In general (regardless of language), you call the compiler from the command line. For example:
gcc myProgram.c -o myProgram
On Windows, we can use
system() . But how to read the command line? In the case of a compiler, for example, how to read the possible errors returned by the compiler on the command line. In other words, how do IDEs do this? This would be important if we wanted to integrate any program with a CLI interface to our system, not just for compilers.