boost::process::pipe p = create_pipe(); file_descriptor_sink sink(p.sink, close_handle); execute( run_exe("test.exe"), bind_stdout(sink) ); file_descriptor_source source(p.source, close_handle); stream<file_descriptor_source> is(source); std::string s; std::getline(is, s);