On 29-Jun-97, Christopher Butler wrote to All about Changing an IOStream.
CB> Could someone show me how I change an OFStream, so that it puts the date
CB> and
CB> time before every line I write to the file... preferably in words of one
CB> syllable :)
Derive a class from ofstream and the overload the output operators to
first output the time & then call the base f()s...
Internet: jkohen@tough.com þ Javier Kohen/The_Crusher þ
ttp://jkohen.base.org
Fidonet: 4:900/748.3 þ Sk-Network: 200:201/126 þ Rockernet: 33:300/100.3
PGP keyID: 3423EAA9
... You didn't tell him about the statue...? þ Riker
-!- CrusherTag 0.3.0.
--- Terminate 4.00/Pro
4:900/748.3)
---------------
* Origin: The King of The Ring BBS þ +54-1-OFF-LINE þ TLD 0 - 7
|