Akay.. so I will try again with another explanation (as nothing work

)
I want to creat a fonction/class which accept to use the operator<< with a string like this:
TOutput l_output;
_output.open("test.fichier", ofstream:

ut | ofstream::app);
_output<< "Output\n";
_output.close();
and in the "test.fichier" file I want to have:
SysLog Output
So the problem is:
How to make an operator like this one
friend ofstream& operator << (ofstream& o,
<user defined type> my_type)
{
...// output my_type how you want (output to "o"

return o;
}
returning the string o = "Syslog "+mystring;
*Sob* One day and I still can't find how to do