By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,819 Members | 1,173 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,819 IT Pros & Developers. It's quick & easy.

open a pipe /c++ fstream as return?

P: n/a
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: ba*****@zhr.tu-dresden.de
phone : (0351) (463) 38553
Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Laszlo Barabas wrote:
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

Jul 19 '05 #2

P: n/a

"Laszlo Barabas" <ba*****@zhr.tu-dresden.de> wrote in message news:kz************@ralf.inf.tu-dresden.de...
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: ba*****@zhr.tu-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:al****@connect.to
http://mathforum.org/library/view/10978.html
=====================================
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.