title: How to interface with an executable in C++
body: <p>I have an executable that I need to run some tests on in C++ - and the testing is going to take place on all of Windows, Linux and Mac OSes. </p>
  
  <p>I was hoping for input on:</p>
  
  <ul>
  <li>How would I interface with the previously built executable from my code? Is there some kind of command functionality that I can use? Also, since I think the commands change between OSes, I'd need some guidance in figuring out how I could structure for all three OSes.</li>
  </ul>
  
  <p>EDIT - Interface = I need to be able to run the executable with a command line argument from my C++ code.  </p>
  
  <ul>
  <li>The executable when called from the commandline also ouputs some text onto a console - how would I be able to grab that ouput stream (I'd need to record those outputted values as part of my tests).</li>
  </ul>
  
  <p>Feel free to ask me follow up questios.</p>
  
  <p>Cheers!</p>