You are correct. My program (b) would read from the standard out of another program (a). The pipe will work for what I'm doing, I was incorrect in assuming that piping like this did not work in Windows. Since it works in both operating systems, this will work for me! Thanks.
http://www.microsoft.c om/resources/documentation/windows/xp/all/proddocs/en-us/redirection.msp x?mfr=true
User Profile
Collapse
-
Read stdout from another program
I am trying to read the standard out of another program into an array or string in my C++ program. I need to read each line individually because based on the output depends on what the program will do.
Example output of the other program is:
www.thescripts. com|/|192.168.1.10|7 5.126.163.34|37 281|80|1
www.thescripts. com|/forum/forum129.html|1 92.168.1.10|75. 126.163.34|3680 4|80|1
As you can see the data is...
No activity results to display
Show More
Leave a comment: