c++ subprocess with stdin and stdout

Job ID: 36429395

Budget: £20 – £250 GBP

I need a small program in c++ (c would do too, but I'd prefer c++) for windows, written in a simple as possible way, that starts another command line application (a dedicated server for a game) as a subprocess (hidden, meaning it won't show up as a window), with the arguments "-noredirectstdin" and "-logFile on", keeps reading its output and it saves any new line in a string and prints that string. At the same time, it keeps waiting for inputs from the user and when enter is pressed it passes it to the subprocess. If the user types "exit", it should close the subprocess instead. (I want to use the code as a bases to build on.)
Related categories: C Programming C++ Programming