How to transfer data between two programes

Hi there, I want to coupled to c++ program together, and there need to have some data transfer between these two executable. I plan to call one exe in the other code and give the input data. I do not want to do file I/O between these two programs. I am wondering if any one knows how to give the data (array directly) to another exe without write on a file and then read in? Thanks!
The Unix way is to write to stdout and read from stdin: ls -l | grep "2004" | wc -l

If you really don't want to go that route then you could used mmap or shared memory. As this is C++, I highly recommend the Boost Interprocess library for this sort of thing.

http://www.boost.org/doc/libs/1_46_0/doc/html/interprocess.html
Topic archived. No new replies allowed.