open a pipe /c++ fstream as return?

L

Laszlo Barabas

Hi,

Until now I used the " FILE* popen(const char *, const char*)" to open one pipe
and I got one "c style" file descriptor back.

What I need is a similar system call to open a pipe, but instead of getting a
file descriptor I need a "C++ -style" fstream (class fstream).

Can anybody help me?
best regards
Laszlo
 
T

Thomas Matthews

Laszlo said:
Hi,

Until now I used the " FILE* popen(const char *, const char*)" to open one pipe
and I got one "c style" file descriptor back.

What I need is a similar system call to open a pipe, but instead of getting a
file descriptor I need a "C++ -style" fstream (class fstream).

Can anybody help me?
best regards
Laszlo
Since popen is not in the _standard_ C++ language,
have you tried asking the experts in a newsgroup
devoted to your platform or operating system?

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 
A

Alex Vinokur

Laszlo Barabas said:
Hi,

Until now I used the " FILE* popen(const char *, const char*)" to open one pipe
and I got one "c style" file descriptor back.

What I need is a similar system call to open a pipe, but instead of getting a
file descriptor I need a "C++ -style" fstream (class fstream).

Can anybody help me?
best regards
Laszlo
--
Laszlo Barabas
Center for High Performance Computing TU Dresden
e-mail: (e-mail address removed)-dresden.de
phone : (0351) (463) 38553

Look at C++-wrapper around the popen() system call :
http://alexvn.freeservers.com/s1/popen.html
http://www.simtel.net/product.php?id=61570

--
=====================================
Alex Vinokur
mailto:[email protected]
http://mathforum.org/library/view/10978.html
=====================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top