I have been looking at ostream and istream iterators and wondering how much used they are in the real world. I have looked at a couple of books and a lot of web pages and everything is always a variation of the same example like
ostream_iterator<int> out_it (cout,", ");
copy(myvector.begin(), myvector.end(), out_it);
Can these stream iterators be used with real files and binary data and is that normally done?