🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Suran de SILVA Fri, 08 Jan 1993 08:34
ostream
#674
Author: Suran de SILVA
Date: Fri, 08 Jan 1993 08:34
22 lines
874 bytes
Hi,

I would like to bind a file to ostream, ie. using code looking something
like:

FILE *fp;

fp = fopen("myFile.dat","w");
ostream myfile(fp);

myfile << "This is new data:";

I was able to do this okay in g++ v1.39.1 with libg++ v1.39.0
but using g++ v2.3.3 with libg++ v2.3 this fails.

Would someone now how to correctly attach a FILE pointer to an
ostream in order to do this, in the newer g++?

Thanks,
Suran.
suran@nff.ncl.omron.co.jp
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads