Article View: gnu.gcc.help
Article #42921Problems using opfstream class
From: Michael Martins
Date: Thu, 05 Oct 1995 00:00
Date: Thu, 05 Oct 1995 00:00
26 lines
1186 bytes
1186 bytes
Hello World
I have some problems using the opfstream class with g++ 2.5.8 on several
machines (DEC-Ultrix, Linux). Data is only send to the pipe if the
opfstream.put member function is used. For example:
opfstream view("|cat");
view.put('<');
view.write("hello world\n",12);
view << "only a test\n";
view.put('>');
opfstream.close();
This code produces only "<>" as output. Neither the "write" member function
or the << operator works.
What is wrong in this code ?
Greetings
Michael
--
|\ /| Michael Martins, Max-Planck-Institut f"ur Radioastronomie
| \/ | Gruppe Optische Interferometrie
| |\/| Auf dem H"ugel 69 Phone: +49-228-525 307
| | | D-53121 Bonn, Germany Email: mmartins@specklec.mpifr-bonn.mpg.de
Technical Details
Message-ID:
<1995Oct5.150454.16727@mpifr-bonn.mpg.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,e13f393328912e7,start X-Google-Attributes: gid11318c,public From: mmartins@spcklg (Michael Martins) Subject: Problems using opfstream class Date: 1995/10/05 Message-ID: <1995Oct5.150454.16727@mpifr-bonn.mpg.de> X-Deja-AN: 117107543 sender: news@mpifr-bonn.mpg.de organization: Max-Planck-Institut f"ur Radioastronomie newsgroups: gnu.gcc.help