Ok I messed around and did the folllow and as such have no success (story of my life):
Code:
ostream& operator<<(std::ostream& os, String& str)
{
os << str.getBuf() << endl;
return os;
}
ofstream& operator<<(std::ofstream& os, String& str)
{
os << str.getBuf() << endl;
return os;
}
with a declaration as....................
void print();
//friend ostream& operator<<(ostream&, String& str);
};
std::ostream& operator <<(std::ostream& os, String& str);
std::ofstream& operator<<(std::ofstream& os, String& str);
#endif
As usual I have not a clue....