8 using namespace xstream;;
11 int main(
int argc,
char* argv[]){
12 const size_t len = 4*1024;
19 out =
new ofstream(argv[1]);
24 dater dsb(out->rdbuf());
29 dout.exceptions(ios::badbit);
33 dout.write(buf,cin.gcount());
40 cerr<<
"Error: "<<e.what()<<endl;
C++ objects to date output lines.
filter that add a time stamp on the begining of each line
int main(int argc, char *argv[])