How to write a function in C ++ that will run another program and read the data that it outputs to its standard output stream.

  • one
    man popen - PinkTux
  • Please specify the operating system, because in C ++ itself there are no means to achieve what you want - you have to use the OS facilities. - ixSci
  • @ixSci Windows 8 operating system. - user200355
  • The answer is the same :-) - PinkTux
  • @Pink Tux thanks, figured it out! Here is the link: msdn.microsoft.com/ru-ru/library/96ayss4b.aspx - user200355

0