I have a program. It is a .EXE command line program that asks a series of questions. I would like to have the source code, but since I do not, I would like to write a new program that feeds input variables into it and then captures the output. Is this a horribly difficult task to do? How do I go about doing this? Do I need to write a terminal (DOS window) emulator? I would like to do this in C++, although I wonder if C++ might not be the best way to do it.