copy of stream
From: Philipp (nospam_kitschen_at_hotmail.com)
Date: 09/30/04
- Next message: Sharad Kala: "Re: const char* argv"
- Previous message: Philipp: "flush on close()?"
- Next in thread: JKop: "Re: copy of stream"
- Reply: JKop: "Re: copy of stream"
- Reply: Gernot Frisch: "Re: copy of stream"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 14:57:35 +0200
Hello,
How can you copy a stream (or change a reference to it)?
Imagine a function which writes "Hello" to a filestream:
void SomeClass::write(ofstream& originalStream){
ofstream newStream;
newStream = originalStream; // this does not work
newStream << "Hello" << endl;
}
How can I make that right? Thanks for your answers Phil
- Next message: Sharad Kala: "Re: const char* argv"
- Previous message: Philipp: "flush on close()?"
- Next in thread: JKop: "Re: copy of stream"
- Reply: JKop: "Re: copy of stream"
- Reply: Gernot Frisch: "Re: copy of stream"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|